diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-02-10 19:37:59 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-02-10 19:37:59 -0500 |
commit | c649572db8f2f57f5f39ed6d842529b188601206 (patch) | |
tree | e8fa7a4a094321aa6c52969c615545f0c3d29637 /src/SMAPI | |
parent | 801eaa70871a9ca86dab8022abfd87d558fa1db3 (diff) | |
download | SMAPI-c649572db8f2f57f5f39ed6d842529b188601206.tar.gz SMAPI-c649572db8f2f57f5f39ed6d842529b188601206.tar.bz2 SMAPI-c649572db8f2f57f5f39ed6d842529b188601206.zip |
fix dialogue propagation clearing marriage dialogue
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Metadata/CoreAssetPropagator.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index 7a58d52c..8d5ad3ab 100644 --- a/src/SMAPI/Metadata/CoreAssetPropagator.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -886,10 +886,17 @@ namespace StardewModdingAPI.Metadata return false; // update dialogue + // Note that marriage dialogue isn't reloaded after reset, but it doesn't need to be + // propagated anyway since marriage dialogue keys can't be added/removed and the field + // doesn't store the text itself. foreach (NPC villager in villagers) { + MarriageDialogueReference[] marriageDialogue = villager.currentMarriageDialogue.ToArray(); + villager.resetSeasonalDialogue(); // doesn't only affect seasonal dialogue villager.resetCurrentDialogue(); + + villager.currentMarriageDialogue.Set(marriageDialogue); } return true; |