blob: 17fa7e5144bcb211b380fa92958488193c3a0713 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using Godot;
using TheLegendOfGustav.Entities.Actors;
using TheLegendOfGustav.Utils;
namespace TheLegendOfGustav.Entities.Actions;
public partial class TakeStairsAction : Action
{
public TakeStairsAction(Actor actor) : base(actor)
{
cost = 0;
}
public override bool Perform()
{
if (Actor.GridPosition == MapData.DownstairsLocation)
{
SignalBus.Instance.EmitSignal(SignalBus.SignalName.PlayerDescent);
MessageLogData.Instance.AddMessage("Você desce as escadas...");
return true;
}
else
{
MessageLogData.Instance.AddMessage("Não tem escadas aqui...");
return false;
}
}
}
|