# a special macro to define slightly less nimble elves such
# as fighters, who don't do quite so well in forest
#define LESS_NIMBLE_ELF
		[defense]
		forest=40
		[/defense]
#enddef

[+units]
	{units}
	{~units}

	#traits that are common to all races and units
	{TRAIT_STRONG}
	{TRAIT_QUICK}
	{TRAIT_INTELLIGENT}
	{TRAIT_RESILIENT}

	[race]
	name=elf
	num_traits=2
	markov_chain_size=2
	{ELVISH_NAMES}

	{TRAIT_DEXTROUS}
	[/race]
	[race]
	name=wose
	num_traits=0
	markov_chain_size=3
	{WOSE_NAMES}
	[/race]
	[race]
	name=human
	num_traits=2
	{HUMAN_NAMES}
	[/race]
	[race]
	name=dwarf
	num_traits=2
	{DWARVISH_NAMES}
	[/race]
	[race]
	name=orc
	num_traits=2
	{ORCISH_NAMES}
	[/race]
	[race]
	name=goblin
	num_traits=2
	{ORCISH_NAMES}
	[/race]
	[race]
	name=undead
	not_living=yes
	num_traits=1
	ignore_global_traits=yes
	{TRAIT_UNDEAD}
	[/race]
	[race]
	name=ogre
	num_traits=2
	{OGRE_NAMES}
	[/race]
	[race]
	name=merman
	num_traits=2
	{MERMAN_NAMES}
	[/race]
	[race]
	name=naga
	num_traits=2
	{NAGA_NAMES}
	[/race]
	[race]
	name=monster
	num_traits=0
	[/race]
	[race]
	name=troll
	num_traits=2
	ignore_global_traits=yes
	{TRAIT_STRONG}
	{TRAIT_QUICK}
	{TRAIT_RESILIENT}
	{TROLL_NAMES}
	[/race]
	[race]
	name=drake
	num_traits=2
	{DRAKE_NAMES}
	[/race]
	[race]
	name=lizard
	num_traits=2
	#Tentative list of fricative heavy lizard names
	{LIZARD_NAMES}
	[/race]
	[race]
	name=mechanical
	not_living=yes
	num_traits=0
	undead_variation=null
	[/race]

	[movetype]
	name=smallfoot
		[movement_costs]
		deep_water=99
		shallow_water=3
		swamp_water=3
		grassland=1
		sand=2
		forest=2
		hills=2
		mountains=3
		village=1
		castle=1
		cave=2
		tundra=3
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=80
		swamp_water=80
		grassland=60
		sand=70
		forest=50
		hills=50
		mountains=40
		village=40
		castle=40
		cave=60
		tundra=80
		canyon=80
		cavewall=10
		fungus=50
		[/defense]

		[resistance]
		blade=100
		pierce=100
		impact=100
		fire=100
		cold=100
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=orcishfoot
		[movement_costs]
		deep_water=99
		shallow_water=3
		swamp_water=3
		grassland=1
		sand=2
		forest=2
		hills=1
		mountains=2
		village=1
		castle=1
		cave=2
		tundra=3
		canyon=99
		cavewall=99
		fungus=3
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=80
		swamp_water=70
		grassland=60
		sand=70
		forest=50
		hills=50
		mountains=40
		village=40
		castle=40
		cave=60
		tundra=80
		canyon=80
		cavewall=10
		fungus=60
		[/defense]

		[resistance]
		blade=100
		pierce=100
		impact=100
		fire=100
		cold=100
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=largefoot
		[movement_costs]
		deep_water=99
		shallow_water=2
		swamp_water=2
		grassland=1
		sand=2
		forest=2
		hills=1
		mountains=2
		village=1
		castle=1
		cave=1
		tundra=2
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=80
		swamp_water=80
		grassland=70
		sand=70
		forest=60
		hills=50
		mountains=40
		village=60
		castle=60
		cave=60
		tundra=80
		canyon=80
		cavewall=80
		fungus=50
		[/defense]

		[resistance]
		blade=80
		pierce=80
		impact=100
		fire=100
		cold=100
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=armoredfoot
		[movement_costs]
		deep_water=99
		shallow_water=4
		swamp_water=4
		grassland=1
		sand=2
		forest=2
		hills=3
		mountains=99
		village=1
		castle=1
		cave=2
		tundra=4
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=90
		swamp_water=90
		grassland=70
		sand=80
		forest=60
		hills=60
		mountains=80
		village=60
		castle=50
		cave=60
		tundra=80
		canyon=80
		cavewall=80
		fungus=60
		[/defense]

		[resistance]
		blade=50
		pierce=60
		impact=90
		fire=110
		cold=110
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=elusivefoot
		[movement_costs]
		deep_water=99
		shallow_water=2
		swamp_water=2
		grassland=1
		sand=2
		forest=2
		hills=2
		mountains=3
		village=1
		castle=1
		cave=2
		tundra=2
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=70
		shallow_water=60
		swamp_water=60
		grassland=40
		sand=60
		forest=30
		hills=30
		mountains=30
		village=30
		castle=30
		cave=50
		tundra=60
		canyon=80
		cavewall=80
		fungus=30
		[/defense]

		[resistance]
		blade=130
		pierce=120
		impact=120
		fire=100
		cold=100
		holy=80
		[/resistance]

	[/movetype]

	[movetype]
	name=mounted
		[movement_costs]
		deep_water=99
		shallow_water=4
		swamp_water=4
		grassland=1
		sand=2
		forest=3
		hills=2
		mountains=99
		village=1
		castle=1
		cave=4
		tundra=2
		canyon=99
		cavewall=99
		fungus=4
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=80
		swamp_water=80
		grassland=60
		sand=70
		forest=70
		hills=60
		mountains=80
		village=60
		castle=60
		cave=80
		tundra=70
		canyon=80
		cavewall=80
		fungus=80
		[/defense]

		[resistance]
		blade=80
		pierce=120
		impact=70
		fire=100
		cold=100
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=woodland
		[movement_costs]
		deep_water=99
		shallow_water=3
		swamp_water=2
		grassland=1
		sand=2
		forest=1
		hills=2
		mountains=3
		village=1
		castle=1
		cave=3
		tundra=2
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=80
		swamp_water=70
		grassland=60
		sand=70
		forest=30
		hills=50
		mountains=40
		village=40
		castle=40
		cave=70
		tundra=70
		canyon=80
		cavewall=80
		fungus=50
		[/defense]

		[resistance]
		blade=100
		pierce=100
		impact=100
		fire=100
		cold=100
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=woodlandfloat
	flies=true
		[movement_costs]
		deep_water=2
		shallow_water=1
		swamp_water=1
		grassland=1
		sand=1
		forest=1
		hills=1
		mountains=2
		village=1
		castle=1
		cave=2
		tundra=1
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=70
		shallow_water=60
		swamp_water=60
		grassland=50
		sand=60
		forest=30
		hills=50
		mountains=40
		village=40
		castle=40
		cave=70
		tundra=60
		canyon=80
		cavewall=80
		fungus=50
		[/defense]

		[resistance]
		blade=100
		pierce=100
		impact=110
		fire=100
		cold=100
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=treefolk
		[movement_costs]
		deep_water=99
		shallow_water=2
		swamp_water=2
		grassland=1
		sand=2
		forest=1
		hills=2
		mountains=3
		village=1
		castle=1
		cave=3
		tundra=2
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=90
		shallow_water=80
		swamp_water=70
		grassland=80
		sand=80
		forest=60
		hills=70
		mountains=70
		village=80
		castle=80
		cave=80
		tundra=80
		canyon=80
		cavewall=80
		fungus=70
		[/defense]

		[resistance]
		blade=100
		pierce=40
		impact=60
		fire=150
		cold=90
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=fly
	flies=true
		[movement_costs]
		deep_water=1
		shallow_water=1
		swamp_water=1
		grassland=1
		sand=1
		forest=1
		hills=1
		mountains=1
		village=1
		castle=1
		cave=3
		tundra=1
		canyon=1
		cavewall=99
		fungus=3
		[/movement_costs]

		[defense]
		deep_water=50
		shallow_water=50
		swamp_water=50
		grassland=50
		sand=50
		forest=50
		hills=50
		mountains=50
		village=50
		castle=50
		cave=80
		tundra=50
		canyon=50
		cavewall=80
		fungus=70
		[/defense]

		[resistance]
		blade=100
		pierce=100
		impact=120
		fire=100
		cold=100
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=deepsea
		[movement_costs]
		deep_water=1
		shallow_water=2
		swamp_water=2
		grassland=4
		sand=4
		forest=5
		hills=5
		mountains=99
		village=2
		castle=1
		cave=3
		tundra=2
		canyon=99
		cavewall=99
		fungus=3
		[/movement_costs]

		[defense]
		deep_water=40
		shallow_water=50
		swamp_water=40
		grassland=70
		sand=70
		forest=70
		hills=70
		mountains=80
		village=70
		castle=70
		cave=80
		tundra=70
		canyon=80
		cavewall=80
		fungus=80
		[/defense]

		[resistance]
		blade=80
		pierce=100
		impact=70
		fire=100
		cold=40
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=swimmer
		[movement_costs]
		deep_water=1
		shallow_water=1
		swamp_water=1
		grassland=2
		sand=2
		forest=5
		hills=5
		mountains=99
		village=1
		castle=1
		cave=3
		tundra=2
		canyon=99
		cavewall=99
		fungus=3
		[/movement_costs]

		[defense]
		deep_water=50
		shallow_water=40
		swamp_water=40
		grassland=70
		sand=70
		forest=70
		hills=70
		mountains=80
		village=60
		castle=60
		cave=80
		tundra=70
		canyon=80
		cavewall=80
		fungus=80
		[/defense]

		[resistance]
		blade=100
		pierce=100
		impact=100
		fire=100
		cold=80
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=naga
		[movement_costs]
		deep_water=1
		shallow_water=1
		swamp_water=1
		grassland=2
		sand=1
		forest=3
		hills=3
		mountains=5
		village=1
		castle=2
		cave=2
		tundra=2
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=50
		shallow_water=40
		swamp_water=40
		grassland=70
		sand=60
		forest=60
		hills=60
		mountains=60
		village=60
		castle=50
		cave=60
		tundra=80
		canyon=80
		cavewall=80
		fungus=60
		[/defense]

		[resistance]
		blade=100
		pierce=100
		impact=100
		fire=100
		cold=120
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=float
	flies=true
		[movement_costs]
		deep_water=1
		shallow_water=1
		swamp_water=2
		grassland=99
		sand=99
		forest=99
		hills=99
		mountains=99
		village=99
		castle=99
		cave=99
		tundra=99
		canyon=99
		cavewall=99
		fungus=99
		[/movement_costs]

		[defense]
		deep_water=50
		shallow_water=50
		swamp_water=60
		grassland=0
		sand=0
		forest=0
		hills=0
		mountains=0
		village=0
		castle=0
		cave=0
		tundra=0
		canyon=0
		cavewall=0
		fungus=0
		[/defense]

		[resistance]
		blade=100
		pierce=100
		impact=110
		fire=100
		cold=100
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=mountainfoot
		[movement_costs]
		deep_water=99
		shallow_water=3
		swamp_water=3
		grassland=1
		sand=1
		forest=1
		hills=1
		mountains=1
		village=1
		castle=1
		cave=1
		tundra=2
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=80
		swamp_water=80
		grassland=70
		sand=70
		forest=70
		hills=40
		mountains=30
		village=50
		castle=40
		cave=50
		tundra=70
		canyon=80
		cavewall=80
		fungus=60
		[/defense]

		[resistance]
		blade=100
		pierce=100
		impact=100
		fire=100
		cold=100
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=dwarvishfoot
		[movement_costs]
		deep_water=99
		shallow_water=3
		swamp_water=3
		grassland=1
		sand=1
		forest=1
		hills=1
		mountains=1
		village=1
		castle=1
		cave=1
		tundra=2
		canyon=99
		cavewall=99
		fungus=1
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=80
		swamp_water=80
		grassland=70
		sand=70
		forest=70
		hills=40
		mountains=30
		village=50
		castle=40
		cave=50
		tundra=70
		canyon=80
		cavewall=80
		fungus=60
		[/defense]

		[resistance]
		blade=80
		pierce=80
		impact=80
		fire=90
		cold=90
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=undeadfoot
		[movement_costs]
		deep_water=3
		shallow_water=2
		swamp_water=2
		grassland=1
		sand=2
		forest=2
		hills=2
		mountains=3
		village=1
		castle=1
		cave=2
		tundra=2
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=90
		shallow_water=80
		swamp_water=70
		grassland=60
		sand=70
		forest=50
		hills=50
		mountains=40
		village=40
		castle=40
		cave=60
		tundra=70
		canyon=80
		cavewall=80
		fungus=40
		[/defense]

		[resistance]
		blade=90
		pierce=70
		impact=110
		fire=120
		cold=40
		holy=200
		[/resistance]
	[/movetype]

	[movetype]
	name=undeadfly
	flies=true
		[movement_costs]
		deep_water=1
		shallow_water=1
		swamp_water=1
		grassland=1
		sand=1
		forest=1
		hills=1
		mountains=1
		village=1
		castle=1
		cave=1
		tundra=1
		canyon=1
		cavewall=99
		fungus=1
		[/movement_costs]

		[defense]
		deep_water=50
		shallow_water=50
		swamp_water=50
		grassland=50
		sand=50
		forest=50
		hills=50
		mountains=50
		village=50
		castle=50
		cave=60
		tundra=50
		canyon=50
		cavewall=80
		fungus=50
		[/defense]

		[resistance]
		blade=100
		pierce=100
		impact=100
		fire=120
		cold=40
		holy=200
		[/resistance]
	[/movetype]

	[movetype]
	name=undeadspirit
	flies=true
		[movement_costs]
		deep_water=2
		shallow_water=2
		swamp_water=1
		grassland=1
		sand=1
		forest=1
		hills=1
		mountains=1
		village=1
		castle=1
		cave=1
		tundra=1
		canyon=1
		cavewall=99
		fungus=1
		[/movement_costs]

		[defense]
		deep_water=50
		shallow_water=50
		swamp_water=50
		grassland=50
		sand=50
		forest=50
		hills=50
		mountains=50
		village=50
		castle=50
		cave=50
		tundra=50
		canyon=50
		cavewall=80
		fungus=50
		[/defense]

		[resistance]
		blade=50
		pierce=50
		impact=50
		fire=90
		cold=30
		holy=150
		[/resistance]
	[/movetype]

	[movetype]
	name=spirit
	flies=true
		[movement_costs]
		deep_water=4
		shallow_water=3
		swamp_water=1
		grassland=1
		sand=1
		forest=1
		hills=1
		mountains=1
		village=1
		castle=1
		cave=1
		tundra=1
		canyon=1
		cavewall=99
		fungus=1
		[/movement_costs]

		[defense]
		deep_water=50
		shallow_water=50
		swamp_water=50
		grassland=50
		sand=50
		forest=50
		hills=50
		mountains=50
		village=50
		castle=50
		cave=60
		tundra=50
		canyon=50
		cavewall=80
		fungus=50
		[/defense]

		[resistance]
		blade=40
		pierce=40
		impact=40
		fire=100
		cold=30
		holy=100
		[/resistance]
	[/movetype]

	[movetype]
		name=lizard
		flies=false
		[movement_costs]
		deep_water=99
		shallow_water=3
		swamp_water=1
		grassland=1
		sand=1
		forest=2
		hills=1
		mountains=2
		village=1
		castle=1
		cave=1
		tundra=4
		canyon=99
		cavewall=99
		fungus=1
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=60
		swamp_water=40
		grassland=60
		sand=40
		forest=40
		hills=40
		mountains=40
		village=50
		castle=40
		cave=40
		tundra=70
		canyon=80
		cavewall=80
		fungus=40
		[/defense]

		[resistance]
		blade=100
		pierce=90
		impact=100
		fire=110
		cold=120
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
		name=none
		flies=false
		[movement_costs]
		deep_water=99
		shallow_water=99
		swamp_water=99
		grassland=99
		sand=99
		forest=99
		hills=99
		mountains=99
		village=99
		castle=99
		cave=99
		tundra=99
		canyon=99
		cavewall=99
		fungus=99
		[/movement_costs]

		[defense]
		deep_water=90
		shallow_water=90
		swamp_water=90
		grassland=50
		sand=50
		forest=50
		hills=50
		mountains=50
		village=50
		castle=50
		cave=50
		tundra=50
		canyon=90
		cavewall=90
		fungus=90
		[/defense]

		[resistance]
		blade=80
		pierce=80
		impact=120
		fire=120
		cold=100
		holy=100
		[/resistance]

	[/movetype]

	[movetype]
		name=scuttlefoot
		flies=false
		[movement_costs]
		deep_water=99
		shallow_water=3
		swamp_water=2
		grassland=1
		sand=2
		forest=2
		hills=3
		mountains=4
		village=1
		castle=1
		cave=2
		tundra=2
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=70
		swamp_water=60
		grassland=60
		sand=60
		forest=50
		hills=50
		mountains=40
		village=40
		castle=40
		cave=60
		tundra=60
		canyon=80
		cavewall=80
		fungus=50
		[/defense]

		[resistance]
		blade=90
		pierce=90
		impact=30
		fire=200
		cold=120
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=drakefly
	flies=true
	# Drakes are huge (easy targets) flying beasts, but are different
	# from the classical flying unit: to fight they have to land
	# They love caves and mountains, and above all: warmth
	# But because of big wings moving in caves is difficult for them
		[movement_costs]
		deep_water=1
		shallow_water=1
		swamp_water=1
		grassland=1
		sand=1
		forest=1
		hills=1
		mountains=1
		village=1
		castle=1
		cave=3
		tundra=1
		canyon=1
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=80
		shallow_water=80
		swamp_water=70
		grassland=70
		sand=60
		forest=60
		hills=60
		mountains=60
		village=60
		castle=60
		cave=70
		tundra=80
		canyon=60
		cavewall=80
		fungus=60
		[/defense]

		[resistance]
		blade=90
		pierce=110
		impact=80
		fire=50
		cold=150
		holy=80
		[/resistance]
	[/movetype]

	[movetype]
	name=drakefoot
	# These Drakes wear heavy armor - they don't fly
	# But the armor makes them a good bit tougher
	# Do a bit worse in Swamps as they can't hop to dry spots
		[movement_costs]
		deep_water=99
		shallow_water=3
		swamp_water=3
		grassland=1
		sand=1
		forest=2
		hills=1
		mountains=1
		village=1
		castle=1
		cave=2
		tundra=3
		canyon=99
		cavewall=99
		fungus=2
		[/movement_costs]

		[defense]
		deep_water=90
		shallow_water=80
		swamp_water=80
		grassland=70
		sand=60
		forest=60
		hills=60
		mountains=60
		village=60
		castle=60
		cave=70
		tundra=80
		canyon=80
		cavewall=80
		fungus=60
		[/defense]

		[resistance]
		blade=80
		pierce=100
		impact=70
		fire=50
		cold=150
		holy=80
		[/resistance]
	[/movetype]
[/units]



