blob: 2de5ed663da8be0ae3ec60e60daae66128f5cf2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#warning-ignore-all:unused_argument
extends Piece
class_name Unit, "res://godot/Piece.png"
func get_mp() -> int:
return 3
func road_march_bonus() -> int:
return 3
func move_cost(src : Tile, dst : Tile, a : int) -> int:
print("from %d %d -> %d %d : %d" % [src.coords.x,src.coords.y,dst.coords.x,dst.coords.y,a])
return dst.cost()
|