1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 11:33:33 +08:00

CheatEnabler v2.1.0

This commit is contained in:
2023-09-14 20:28:57 +08:00
parent f34dcf4f96
commit 24ba5481a9
12 changed files with 418 additions and 85 deletions

View File

@@ -246,20 +246,13 @@ public static class DysonSpherePatch
}
[HarmonyPostfix]
[HarmonyPatch(typeof(GameData), nameof(GameData.NewGame))]
[HarmonyPatch(typeof(GameData), nameof(GameData.Import))]
private static void GameData_NewGame_Postfix()
[HarmonyPatch(typeof(GameMain), nameof(GameMain.Begin))]
private static void GameMain_Begin_Postfix()
{
UpdateSailsCacheForThisGame();
}
[HarmonyPostfix]
[HarmonyPatch(typeof(GameHistoryData), nameof(GameHistoryData.SetForNewGame))]
[HarmonyPatch(typeof(GameHistoryData), nameof(GameHistoryData.Import))]
private static void GameHistoryData_SetForNewGame_Postfix()
{
UpdateSailLifeTime();
}
[HarmonyPostfix]
[HarmonyPatch(typeof(GameHistoryData), nameof(GameHistoryData.UnlockTechFunction))]
private static void GameHistoryData_SetForNewGame_Postfix(int func)