private static void Prefix() { if (Core.God.Setting.stopOnReading.Value) { GameSpeeder.ApplyTimeScale(false); } }
private static void Postfix() { if (God.Core.God.Setting.stopOnCatching.Value) { GameSpeeder.ApplyTimeScale(false); } GetQuquWindow_LateUpdate_fixDeltaTime = 0; }
private static void BattleSystem_GetEnemy_Postfix(BattleSystem __instance, bool newBattle) { if (newBattle) { BattleSystem_GetEnemy__thisBattleAlreadySet = false; } else if (BattleSystem_GetEnemy__thisBattleAlreadySet) { return; } int nEnemyId = __instance.ActorId(false, false); int nPlayerId = __instance.ActorId(true, false); int enemyJingCunPoint = int.Parse(DateFile.instance.GetActorDate(nEnemyId, 901, false)); int playerJingCunPoint = int.Parse(DateFile.instance.GetActorDate(nPlayerId, 901, false)); // Main.Logger.Log("New Enemy Entered " + nEnemyId + " " + enemyJingCunPoint); if (God.Core.God.Setting.stopOnHiJingcunEnemy.Value && enemyJingCunPoint - playerJingCunPoint >= God.Core.God.Setting.minJingcunExc.Value) { BattleSystem_GetEnemy__thisBattleAlreadySet = true; GameSpeeder.ApplyTimeScale(false); } }
private static void Postfix() => GameSpeeder.ApplyTimeScale(God.Core.God.Setting.enabled.Value);