diff --git a/QSB/ConversationSync/Patches/ConversationPatches.cs b/QSB/ConversationSync/Patches/ConversationPatches.cs index 0ae2ad5a..ffe1f21e 100644 --- a/QSB/ConversationSync/Patches/ConversationPatches.cs +++ b/QSB/ConversationSync/Patches/ConversationPatches.cs @@ -166,5 +166,13 @@ namespace QSB.ConversationSync.Patches new PersistentConditionMessage(condition, state).Send(); } } + + [HarmonyPrefix] + [HarmonyPatch(typeof(DialogueConditionManager), nameof(DialogueConditionManager.AddCondition))] + public static bool AddCondition(string conditionName, bool conditionState) + { + new DialogueConditionMessage(conditionName, conditionState).Send(); + return true; + } } } \ No newline at end of file diff --git a/QSB/WorldSync/QSBWorldSync.cs b/QSB/WorldSync/QSBWorldSync.cs index 09d95473..e45cb5f5 100644 --- a/QSB/WorldSync/QSBWorldSync.cs +++ b/QSB/WorldSync/QSBWorldSync.cs @@ -154,7 +154,7 @@ namespace QSB.WorldSync } DebugLog.DebugWrite($"DIALOGUE CONDITIONS :"); - DialogueConditions = (Dictionary)DialogueConditionManager.SharedInstance._dictConditions; + DialogueConditions = new(DialogueConditionManager.SharedInstance._dictConditions); foreach (var item in DialogueConditions) { DebugLog.DebugWrite($"- {item.Key}, {item.Value}");