aboutsummaryrefslogtreecommitdiffstats
path: root/code/phase/EndPhase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/phase/EndPhase.cs')
-rw-r--r--code/phase/EndPhase.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/code/phase/EndPhase.cs b/code/phase/EndPhase.cs
index 904dc81..ada988d 100644
--- a/code/phase/EndPhase.cs
+++ b/code/phase/EndPhase.cs
@@ -1,26 +1,24 @@
using Sandbox;
-using System.Linq;
namespace MurderGame;
public class EndPhase : BasePhase
{
- public override string Title => "Game over";
public int TicksElapsed;
+ public override string Title => "Game over";
public override void Activate()
{
- base.TimeLeft = 7;
+ TimeLeft = 7;
}
public override void Tick()
{
++TicksElapsed;
- if (base.TimeLeft != -1 && TicksElapsed % Game.TickRate == 0 && --base.TimeLeft == 0)
+ if ( TimeLeft != -1 && TicksElapsed % Game.TickRate == 0 && --TimeLeft == 0 )
{
- base.NextPhase = new WaitPhase() { CountIn = false };
- base.IsFinished = true;
- return;
+ NextPhase = new WaitPhase { CountIn = false };
+ IsFinished = true;
}
}
}