mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
fix dialogue condition funkiness
This commit is contained in:
parent
de419da227
commit
3c88bc7072
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
@ -154,7 +154,7 @@ namespace QSB.WorldSync
|
||||
}
|
||||
|
||||
DebugLog.DebugWrite($"DIALOGUE CONDITIONS :");
|
||||
DialogueConditions = (Dictionary<string, bool>)DialogueConditionManager.SharedInstance._dictConditions;
|
||||
DialogueConditions = new(DialogueConditionManager.SharedInstance._dictConditions);
|
||||
foreach (var item in DialogueConditions)
|
||||
{
|
||||
DebugLog.DebugWrite($"- {item.Key}, {item.Value}");
|
||||
|
Loading…
Reference in New Issue
Block a user