Ejemplo n.º 1
0
        private void ArtifactTrialMissionController_CombatState_OnEnter(On.RoR2.ArtifactTrialMissionController.CombatState.orig_OnEnter orig, EntityStates.EntityState self)
        {
            orig(self);

            respawnController.RespawnType = RespawnType.Artifact;

            if (PluginConfig.RespawnOnArtifactTrialStart.Value)
            {
                respawnController.RespawnAllUsers();
            }

            if (PluginConfig.BlockTimedRespawnOnArtifactTrial.Value)
            {
                respawnController.BlockTimedRespawn();
            }
        }
Ejemplo n.º 2
0
        private void BrotherEncounter_Phase1_OnEnter(On.EntityStates.Missions.BrotherEncounter.Phase1.orig_OnEnter orig, EntityStates.Missions.BrotherEncounter.Phase1 self)
        {
            orig(self);

            respawnController.RespawnType = RespawnType.Mithrix;

            if (PluginConfig.RespawnOnMithrixStart.Value)
            {
                respawnController.RespawnAllUsers();
            }

            if (PluginConfig.BlockTimedRespawnOnMithrixFight.Value)
            {
                respawnController.BlockTimedRespawn();
            }
        }
        private void TeleporterInteraction_ChargingState_OnEnter(On.RoR2.TeleporterInteraction.ChargingState.orig_OnEnter orig, EntityStates.BaseState self)
        {
            orig(self);

            respawnController.RespawnType = RespawnType.Teleporter;

            if (PluginConfig.RespawnOnTPStart.Value)
            {
                respawnController.RespawnAllUsers();
            }

            if (PluginConfig.BlockTimedRespawnOnTPEvent.Value)
            {
                respawnController.BlockTimedRespawn();
                ChatHelper.RespawnBlockedOnTPEvent();
            }
        }