21 lines
544 B
C#
21 lines
544 B
C#
using Assets.Scripts.Actions.Interfaces;
|
|
|
|
namespace Assets.Scripts.Actions
|
|
{
|
|
public class Relax : IPlayerAction
|
|
{
|
|
private int _energyPerTick;
|
|
public Relax(int duration, int energyPerTick)
|
|
{
|
|
_energyPerTick = energyPerTick;
|
|
}
|
|
|
|
public string Description => throw new System.NotImplementedException();
|
|
|
|
public void ApplyAction(Player playerController)
|
|
{
|
|
playerController.Stats[StatsId.Energy].increase(_energyPerTick);
|
|
}
|
|
}
|
|
}
|