ported from perforce
This commit is contained in:
21
RobotAndDonkey.Game/Execution/Commands/RerollCommand.cs
Normal file
21
RobotAndDonkey.Game/Execution/Commands/RerollCommand.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using RobotAndDonkey.Game.Data;
|
||||
using RobotAndDonkey.Game.Execution.Requests;
|
||||
using RobotAndDonkey.Game.GameState;
|
||||
using RobotAndDonkey.Game.Intents;
|
||||
|
||||
namespace RobotAndDonkey.Game.Execution.Commands;
|
||||
|
||||
public sealed record RerollCommand(Guid RequestId) : Command(RequestId, typeof(ImproveRequest))
|
||||
{
|
||||
protected override void CreateIntents(CoreLoop coreLoop, List<Intent> intents)
|
||||
{
|
||||
intents.Add(new Reroll(Balancing.Instance.GetRerollEnergyCost(coreLoop.RerollCount)));
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "Reroll command";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user