blob: e699f6119519986de5acf49adc74c16ca6bd4735 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#warning-ignore-all:unused_argument
extends Piece
class_name Unit, "res://godot/Piece.png"
func get_mp() -> int:
return 2
func road_march_bonus() -> int:
return 2
func move_cost(src : Tile, dst : Tile, orientation : int) -> int:
return (1 if (src.has_road(orientation) and dst.type != 3) else dst.cost())
|