################################################
# RACE
################################################
elf_race = {
	potential = {
		NOT = { trait = human_race }
		NOT = { trait = dwarf_race }
		NOT = { trait = halfdwarf_race }
		NOT = { trait = halfling_race }
		NOT = { trait = halfhalfling_race}
		NOT = { trait = gnome_race }
		NOT = { trait = halfgnome_race }
		NOT = { trait = dryad_race }
	}
	
	same_opinion = 5
	human_race_opinion = -10 # Racism
		
	intrigue = 4
	fertility = -10
	health = 10
	
	command_modifier = {
		terrain = forest
		terrain = jungle
	}
	
	immortal = yes
	
	customizer = no
	random = no
}
halfelf_race = {
	human_race_opinion = -5 # Racism
	
	intrigue = 2
	health = 2
	
	command_modifier = {
		terrain = forest
		terrain = jungle
	}
	
	customizer = no
	random = no
}
dwarf_race = {
	potential = {
		NOT = { trait = human_race }
		NOT = { trait = elf_race }
		NOT = { trait = halfelf_race }
		NOT = { trait = halfling_race }
		NOT = { trait = halfhalfling_race}
		NOT = { trait = gnome_race }
		NOT = { trait = halfgnome_race }
		NOT = { trait = dryad_race }
	}
	same_opinion = 5
	human_race_opinion = -10 # Racism
	
	stewardship = 2
	martial = 2
	
	immortal = yes
	health = 10
	
	command_modifier = {
		terrain = mountain
		terrain = hills
	}
	
	customizer = no
	random = no
}
halfdwarf_race = {
	human_race_opinion = -5 # Racism
		
	stewardship = 1
	martial = 1
	health = 5

	customizer = no
	random = no
}
halfling_race = {
	potential = {
		NOT = { trait = human_race }
		NOT = { trait = elf_race }
		NOT = { trait = halfelf_race }
		NOT = { trait = dwarf_race }
		NOT = { trait = halfdwarf_race}
		NOT = { trait = gnome_race }
		NOT = { trait = halfgnome_race }
		NOT = { trait = dryad_race }
	}
	same_opinion = 5
	human_race_opinion = -10 # Racism
	
	diplomacy = 2
	stewardship = 2
	martial = -2

	immortal = yes
	health = 10
	
	customizer = no
	random = no
}
halfhalfling_race = {
	human_race_opinion = -5 # Racism
	
	diplomacy = 1
	stewardship = 1
	martial = -2
	
	health = 5
	
	customizer = no
	random = no
}
gnome_race = {
	potential = {
		NOT = { trait = human_race }
		NOT = { trait = elf_race }
		NOT = { trait = halfelf_race }
		NOT = { trait = dwarf_race }
		NOT = { trait = halfdwarf_race }
		NOT = { trait = halfling_race }
		NOT = { trait = halfhalfling_race}
		NOT = { trait = dryad_race }
	}
	same_opinion = 5
	human_race_opinion = -10 # Racism
	
	martial = -4
	intrigue = 2
	learning = 6
	
	immortal = yes
	health = 10
	
	customizer = no
	random = no
}
halfgnome_race = {
	human_race_opinion = -5 # Racism
	
	martial = -2
	intrigue = 1
	learning = 3
	
	customizer = no
	random = no
}
dryad_race = {
	same_opinion = 5
	human_race_opinion = -10 # Racism
	fertility = -10
	health = 25
	
	immortal = yes
	
	cannot_marry = yes
	
	command_modifier = {
		terrain = forest
		terrain = dryad_forest
	}
	
	customizer = no
	random = no
}
human_race = {
	customizer = no
	random = no
	
	# Elder races see humans as the invaders
	# This is offset by tolerant trait, and worsen by racist trait
	dryad_race_opinion = -10
	elf_race_opinion = -10
	dwarf_race_opinion = -10
	gnome_race_opinion = -10
	halfling_race_opinion = -10
}
wilderness_race = {
	diplomacy_penalty = -10
	martial_penalty = -10
	stewardship_penalty = -10
	intrigue_penalty = -10
	learning_penalty = -10
	health = 1000
	fertility = -10 # 1000%
	
	cannot_marry = yes
	cannot_inherit = yes
	immortal = yes

	# Increase demesne limit and make one character holder of all titles
	demesne_size = 500
	
	# Reduce levies, taxes, ...
	levy_size = -10
	global_tax_modifier = -1
	global_revolt_risk = -1
	global_levy_size = -1
	defensive_plot_power_modifier = 1
	
	monthly_character_piety = -2
	monthly_character_prestige = -2
	monthly_character_wealth = -1
	
	ai_ambition = -100
	
	general_opinion = -150 # Limit AI acceptance of interactions

	customizer = no
	random = no
}
dragon_race = { # Secret dragon trait
	hidden_from_others = yes
	
    immortal = yes
    health = 20
    fertility = -10
    
    combat_rating = 50
    
    customizer = no
    random = no
}