summaryrefslogtreecommitdiffstats
path: root/Unit.gd
blob: cda26c81cc89c039ff3eb437e160502f5b6e372a (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, o : int) -> int:
	return (1 if (src.has_road(o) and dst.type != 3) else dst.cost())