aboutsummaryrefslogtreecommitdiffstats
path: root/code/phase/EndPhase.cs
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-08-06 17:21:45 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-08-06 17:21:45 +0100
commit0bba89a7858ce091f485e04284f853e1f7f304af (patch)
tree89ba42616e0f245cc84c96cc5b353eea117057d0 /code/phase/EndPhase.cs
parent87d74b50bf443bf199be05bd03afdca6ece082ff (diff)
ReformatHEADmaster
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;
}
}
}