mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
meditation button fix
This commit is contained in:
parent
b41e2c64bf
commit
45fdc77a90
@ -146,6 +146,21 @@ public class ConversationPatches : QSBPatch
|
||||
public static void SetPersistentCondition(string condition, bool state) =>
|
||||
new PersistentConditionMessage(condition, state).Send();
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(GameSave), nameof(GameSave.GetPersistentCondition))]
|
||||
public static bool GetPersistentCondition(string condition, ref bool __result)
|
||||
{
|
||||
// stinky fix to meditation button appearing
|
||||
|
||||
if (condition == "KNOWS_MEDITATION")
|
||||
{
|
||||
__result = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(DialogueConditionManager), nameof(DialogueConditionManager.AddCondition))]
|
||||
public static void AddCondition(string conditionName, bool conditionState) =>
|
||||
|
Loading…
Reference in New Issue
Block a user