summaryrefslogtreecommitdiff
path: root/scripts/actors/actions/MovementAction.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-01 19:41:25 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-01 19:41:25 -0300
commit2023ac3fa6477142299115b056b4ad380a9a9f7a (patch)
tree7584324f71e3a3a1853240042f956298c1c8cf0b /scripts/actors/actions/MovementAction.cs
parent2d0139c3275d5c0bdaedc23d38da4d744870020d (diff)
Implementado sistema de ações gratuitas.
Diffstat (limited to 'scripts/actors/actions/MovementAction.cs')
-rw-r--r--scripts/actors/actions/MovementAction.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/actors/actions/MovementAction.cs b/scripts/actors/actions/MovementAction.cs
index 7d0c93b..3608357 100644
--- a/scripts/actors/actions/MovementAction.cs
+++ b/scripts/actors/actions/MovementAction.cs
@@ -11,7 +11,6 @@ public partial class MovementAction : DirectionalAction
public override void Perform()
{
- actor.Energy -= cost;
// Não anda se o destino for um tile sólido.
if (!Map_Data.IsTileWalkable(Destination)) return;
@@ -20,5 +19,6 @@ public partial class MovementAction : DirectionalAction
if (GetTargetActor() != null) return;
actor.Walk(Offset);
+ actor.Energy -= cost;
}
}