diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-18 18:43:54 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-18 18:43:54 -0300 |
| commit | 723e66a82606ee78ca4156a0c0a850185b4c0369 (patch) | |
| tree | 1aafa29e16a462f812b804e2f3419387ba07b2f2 /scripts/actors/actions | |
| parent | c9057bbd88f14a4e0e572c16452c1ab9baebfe2a (diff) | |
IT'S OVER
Diffstat (limited to 'scripts/actors/actions')
| -rw-r--r-- | scripts/actors/actions/Action.cs | 4 | ||||
| -rw-r--r-- | scripts/actors/actions/DirectionalAction.cs | 2 | ||||
| -rw-r--r-- | scripts/actors/actions/MovementAction.cs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/scripts/actors/actions/Action.cs b/scripts/actors/actions/Action.cs index 76ae5d5..bb5f6f1 100644 --- a/scripts/actors/actions/Action.cs +++ b/scripts/actors/actions/Action.cs @@ -11,7 +11,7 @@ public abstract partial class Action : RefCounted { public abstract void Perform(); - protected DungeonLevel Map { - get => actor.Map; + protected MapData Map_Data { + get => actor.Map_Data; } } diff --git a/scripts/actors/actions/DirectionalAction.cs b/scripts/actors/actions/DirectionalAction.cs index 077f475..d5199f9 100644 --- a/scripts/actors/actions/DirectionalAction.cs +++ b/scripts/actors/actions/DirectionalAction.cs @@ -10,6 +10,6 @@ public abstract partial class DirectionalAction : Action } protected Actor GetBlockingActorAtPosition(Vector2I pos) { - return Map.GetBlockingActorAtPosition(pos); + return Map_Data.GetBlockingActorAtPosition(pos); } } diff --git a/scripts/actors/actions/MovementAction.cs b/scripts/actors/actions/MovementAction.cs index c9474b0..54bb99c 100644 --- a/scripts/actors/actions/MovementAction.cs +++ b/scripts/actors/actions/MovementAction.cs @@ -11,7 +11,7 @@ public partial class MovementAction : DirectionalAction { Vector2I finalDestination = actor.GridPosition + Offset; - if (!Map.IsTileWalkable(finalDestination)) return; + if (!Map_Data.IsTileWalkable(finalDestination)) return; if (GetBlockingActorAtPosition(finalDestination) != null) return; |
