diff options
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; |
