public void BossDeathCleanup() { PortalCompleted = true; Eject(); PortalItem.Delete(); PortalItem2.Delete(); RemoveMobs(); RemoveCrystals(); ParticipantsScores.Clear(); if (ValidSpawnPoints != null) { ValidSpawnPoints.Clear(); ValidSpawnPoints.TrimExcess(); } }
public void StopPortal() { Status = PortalCompleted ? PortalStatus.Finished : PortalStatus.Failed; Eject(); PortalItem.Delete(); PortalItem2.Delete(); RemoveMobs(); RemoveCrystals(); _CoreTimer.Stop(); ParticipantsScores.Clear(); if (ValidSpawnPoints != null) { ValidSpawnPoints.Clear(); ValidSpawnPoints.TrimExcess(); } }
public void RestartInvasion() { CurrentLevel = Levels.First(); Invaders.Clear(); Invaders.TrimExcess(); CurrentLevelKills = 0; _CoreTicks = 0; DateStarted = DateTime.UtcNow; ParticipantsScores.Clear(); SpawnInvaders(CurrentLevel.SpawnAmount); Status = InvasionStatus.Running; Notify.Broadcast <HydraMotMNotifyGump>( "The " + InvasionName + " has begun!", true, 1.0, 10.0); init(); }