summaryrefslogtreecommitdiffstats
path: root/Unit.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Unit.gd')
-rw-r--r--Unit.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/Unit.gd b/Unit.gd
index cda26c8..e699f61 100644
--- a/Unit.gd
+++ b/Unit.gd
@@ -9,5 +9,5 @@ func get_mp() -> int:
func road_march_bonus() -> int:
return 2
-func move_cost(src : Tile, dst : Tile, o : int) -> int:
- return (1 if (src.has_road(o) and dst.type != 3) else dst.cost())
+func move_cost(src : Tile, dst : Tile, orientation : int) -> int:
+ return (1 if (src.has_road(orientation) and dst.type != 3) else dst.cost())