private void CombatState_OnExit(On.RoR2.ArtifactTrialMissionController.CombatState.orig_OnExit orig, EntityStates.EntityState self) { orig(self); if (PluginConfig.BlockTimedRespawnOnArtifactTrial.Value) { respawnController.UnblockTimedRespawn(); } if (PluginConfig.RespawnOnArtifactTrialEnd.Value) { respawnController.RespawnAllUsers(); } }
private void TeleporterInteraction_ChargedState_OnEnter(On.RoR2.TeleporterInteraction.ChargedState.orig_OnEnter orig, EntityStates.BaseState self) { orig(self); if (PluginConfig.BlockTimedRespawnOnTPEvent.Value) { respawnController.UnblockTimedRespawn(); } if (PluginConfig.RespawnOnTPEnd.Value) { respawnController.RespawnAllUsers(); } }
private void BrotherEncounter_EncounterFinished_OnEnter(On.EntityStates.Missions.BrotherEncounter.EncounterFinished.orig_OnEnter orig, EntityStates.Missions.BrotherEncounter.EncounterFinished self) { orig(self); if (PluginConfig.BlockTimedRespawnOnMithrixFight.Value) { respawnController.UnblockTimedRespawn(); } if (PluginConfig.RespawnOnMithrixEnd.Value) { respawnController.RespawnAllUsers(); } }