ported from perforce
This commit is contained in:
21
RobotAndDonkey.Game/Intents/DeferGlitch.cs
Normal file
21
RobotAndDonkey.Game/Intents/DeferGlitch.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using RobotAndDonkey.Game.Cards;
|
||||
using RobotAndDonkey.Game.Execution.Results;
|
||||
using RobotAndDonkey.Game.GameState;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RobotAndDonkey.Game.Intents;
|
||||
|
||||
public class DeferGlitch(int energyCost) : Intent(energyCost)
|
||||
{
|
||||
public override void Run(Guid requestId, CoreLoop coreLoop, List<Intent> newIntents, List<Result> results)
|
||||
{
|
||||
coreLoop.DeferGlitchCount += 1;
|
||||
results.Add(new DeferGlitchCountResult(requestId, coreLoop.DeferGlitchCount));
|
||||
base.Run(requestId, coreLoop, newIntents, results);
|
||||
}
|
||||
|
||||
public override bool Immune => true;
|
||||
|
||||
public override string ToString() => "Defer glitch, " + base.ToString();
|
||||
}
|
||||
Reference in New Issue
Block a user