Skip to content

Commit d9b7c43

Browse files
Merge pull request #4 from PolyTech-Modding/cheat_flag_fix
fixed issue where the cheat flag wasn't enabled when turning a cheat mod on during simulation
2 parents ec1932c + ef5a503 commit d9b7c43

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

PolyTechMain.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class PolyTechMain : PolyTechMod
2323
public new const string
2424
PluginGuid = "polytech.polytechframework",
2525
PluginName = "PolyTech Framework",
26-
PluginVersion = "0.9.0";
26+
PluginVersion = "0.9.1";
2727
private static BindingList<PolyTechMod>
2828
noncheatMods = new BindingList<PolyTechMod> { },
2929
cheatMods = new BindingList<PolyTechMod> { };
@@ -124,6 +124,10 @@ public void Awake()
124124
private void Update()
125125
{
126126
PopupQueue.TryShowNextPopup();
127+
if (numEnabledCheatMods() > 0 && Bridge.IsSimulating() && !BridgeCheat.m_Cheated){
128+
GameStateSim.m_BudgetUsed = Mathf.RoundToInt(Budget.CalculateBridgeCost());
129+
BridgeCheat.m_Cheated = BridgeCheat.CheckForCheating((float)GameStateSim.m_BudgetUsed);
130+
}
127131
if (!flag && globalToggleHotkey.Value.IsDown())
128132
{
129133
flag = true;

0 commit comments

Comments
 (0)