fix marriage dialogue left in invalid state after dialogue propagation
This commit is contained in:
parent
6f8fb2a68b
commit
96ec4de727
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
* For modders:
|
* For modders:
|
||||||
* Fixed asset propagation on Linux/Mac for monster sprites, NPC dialogue, and NPC schedules.
|
* Fixed asset propagation on Linux/Mac for monster sprites, NPC dialogue, and NPC schedules.
|
||||||
|
* Fixed asset propagation for NPC dialogue sometimes causing a spouse to skip marriage dialogue or not allow kisses.
|
||||||
|
|
||||||
## 3.4.1
|
## 3.4.1
|
||||||
Released 24 March 2020 for Stardew Valley 1.4.1 or later.
|
Released 24 March 2020 for Stardew Valley 1.4.1 or later.
|
||||||
|
|
|
@ -892,11 +892,13 @@ namespace StardewModdingAPI.Metadata
|
||||||
// doesn't store the text itself.
|
// doesn't store the text itself.
|
||||||
foreach (NPC villager in villagers)
|
foreach (NPC villager in villagers)
|
||||||
{
|
{
|
||||||
|
bool shouldSayMarriageDialogue = villager.shouldSayMarriageDialogue.Value;
|
||||||
MarriageDialogueReference[] marriageDialogue = villager.currentMarriageDialogue.ToArray();
|
MarriageDialogueReference[] marriageDialogue = villager.currentMarriageDialogue.ToArray();
|
||||||
|
|
||||||
villager.resetSeasonalDialogue(); // doesn't only affect seasonal dialogue
|
villager.resetSeasonalDialogue(); // doesn't only affect seasonal dialogue
|
||||||
villager.resetCurrentDialogue();
|
villager.resetCurrentDialogue();
|
||||||
|
|
||||||
|
villager.shouldSayMarriageDialogue.Set(shouldSayMarriageDialogue);
|
||||||
villager.currentMarriageDialogue.Set(marriageDialogue);
|
villager.currentMarriageDialogue.Set(marriageDialogue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue