added tooltips
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
namespace Assets.Scripts.Actions
|
||||
using Assets.Scripts.Actions.Interfaces;
|
||||
|
||||
namespace Assets.Scripts.Actions
|
||||
{
|
||||
public class Relax : BaseAction
|
||||
public class Relax : IPlayerAction
|
||||
{
|
||||
private int _energyPerTick;
|
||||
public Relax(int duration, int energyPerTick) : base(duration)
|
||||
public Relax(int duration, int energyPerTick)
|
||||
{
|
||||
_energyPerTick = energyPerTick;
|
||||
}
|
||||
public override void ApplyAction(PlayerManager playerController)
|
||||
|
||||
public string Description => throw new System.NotImplementedException();
|
||||
|
||||
public void ApplyAction(PlayerManager playerController)
|
||||
{
|
||||
playerController.energy.increase(_energyPerTick);
|
||||
playerController.PlayerStats[GameManager.StatsId.Energy].increase(_energyPerTick);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user