##############################################################
###	PORTRAITS SETTINGS
###
### Which portraits are used is set in 
### common\species_classes\00_species_classes.txt
###
###	This file configures how portraits and planet backgrounds are built.
###	Default position orientation is lower left.
##############################################################



portraits = {

	#ϣʹͽ
	chenjun = {	texturefile = "gfx/models/portraits/xilin/chenjun.dds"  }
	chenqian = {	texturefile = "gfx/models/portraits/xilin/chenqian.dds"  }
	xuqianqian = {	texturefile = "gfx/models/portraits/xilin/xuqianqian.dds"  }
	linxue = {	texturefile = "gfx/models/portraits/xilin/linxue.dds"  }
	
	shanduola = {	texturefile = "gfx/models/portraits/xilin/shanduola.dds"  }
	panduola = {	texturefile = "gfx/models/portraits/xilin/panduola.dds"  }
	weisika = {	texturefile = "gfx/models/portraits/xilin/weisika.dds"  }
	xikaluo = {	texturefile = "gfx/models/portraits/xilin/xikaluo.dds"  }
	xiweisi = {	texturefile = "gfx/models/portraits/xilin/xiweisi.dds"  }
	taweier = {	texturefile = "gfx/models/portraits/xilin/taweier.dds"  }
	anaiye = {	texturefile = "gfx/models/portraits/xilin/anaiye.dds"  }
	paopao = {	texturefile = "gfx/models/portraits/xilin/paopao.dds"  }
	
	dingdang = {	texturefile = "gfx/models/portraits/xilin/dingdang.dds"  }
	lilina = {	texturefile = "gfx/models/portraits/xilin/lilina.dds"  }
	
	xilin_male_1 = {	texturefile = "gfx/models/portraits/xilin/xilin_male_1.dds"  }
	xilin_male_2 = {	texturefile = "gfx/models/portraits/xilin/xilin_male_2.dds"  }
	xilin_male_3 = {	texturefile = "gfx/models/portraits/xilin/xilin_male_3.dds"  }
	xilin_female_1 = {	texturefile = "gfx/models/portraits/xilin/xilin_female_1.dds"  }
	xilin_female_2 = {	texturefile = "gfx/models/portraits/xilin/xilin_female_2.dds"  }
	xilin_female_3 = {	texturefile = "gfx/models/portraits/xilin/xilin_female_3.dds"  }
	pop1 = {	texturefile = "gfx/models/portraits/xilin/pop1.dds"  }
}

portrait_groups = {
	xilin_apostle = {
		default =chenjun
		game_setup = { #will run with a limited country scope. species and government is set but the country does not actually exist
			add = {
				portraits = {
					chenjun
				}
			}
			
			#set = {
			#	trigger = { ... }
			#	portraits = { ... }
			#	#using "set =" instead of "add" will first clear any portraits already added
			#}
		}		
		
		#species scope
		species = { #generic portrait for a species
			add = {
				portraits = {
					chenjun
				}
			}
		}		
		
		#pop scope
		pop = { #for a specific pop
			add = {
				portraits = {
#					pop1
					xilin_male_1
					xilin_male_2
					xilin_male_3
					xilin_female_1
					xilin_female_2
					xilin_female_3
				}
			}
		}
		
		#leader scope
		leader = { #scientists, generals, admirals, governor
			#˶
			add = {
				trigger = {
					 has_trait = leader_trait_panduola
				}
				portraits = {
					panduola
				}
			}
			#
			add = {
				trigger = {
					 has_trait = leader_trait_xikaluo
				}
				portraits = {
					xikaluo
				}
			}
			#ά˹
			add = {
				trigger = {
					 has_trait = leader_trait_xiweisi
				}
				portraits = {
					xiweisi
				}
			}
			#ά(ײĿ)
			add = {
				trigger = {
					 has_trait = leader_trait_taweier
				}
				portraits = {
					taweier
				}
			}
			#ɺ
			add = {
				trigger = {
					 has_trait = leader_trait_shanduola
				}
				portraits = {
					 shanduola
				}
			}
			#ά˹
			add = {
				trigger = {
					 has_trait = leader_trait_weisika
				}
				portraits = {
					 weisika
				}
			}
			#Ү
			add = {
				trigger = {
					 has_trait = leader_trait_anaiye
				}
				portraits = {
					 anaiye
				}
			}
			#
			add = {
				trigger = {
					 has_trait = leader_trait_paopao
				}
				portraits = {
					 paopao
				}
			}
			#ͨ
			add = {
			  trigger = {
					 gender = male
					 NOR = { 
					 		has_trait = leader_trait_panduola
					    has_trait = leader_trait_xiweisi
					    has_trait = leader_trait_taweier
					    has_trait = leader_trait_shanduola
					    has_trait = leader_trait_weisika
					    has_trait = leader_trait_anaiye
					    has_trait = leader_trait_paopao
					 		has_trait = leader_trait_xikaluo
					 }
				}
				portraits = {
					xilin_male_1
					xilin_male_2
					xilin_male_3
				}
			}
			#ͨŮ
			add = {
			  trigger = {
					 gender = female
					 NOR = {
					    has_trait = leader_trait_panduola
					    has_trait = leader_trait_xiweisi
					    has_trait = leader_trait_taweier
					    has_trait = leader_trait_shanduola
					    has_trait = leader_trait_weisika
					    has_trait = leader_trait_anaiye
					    has_trait = leader_trait_paopao
					    has_trait = leader_trait_xikaluo
					 }
				}
				portraits = {
					xilin_female_1
					xilin_female_2
					xilin_female_3
				}
			}
		}

			
		#leader scope 
		ruler = {
			add = {			
				portraits = {
					chenjun
				}
			}
		}
	}
	
	human_god = {
		default = chenjun
		game_setup = { #will run with a limited country scope. species and government is set but the country does not actually exist
			add = {
				portraits = {
					chenjun
					chenqian
					xuqianqian
				}
			}
			
			#set = {
			#	trigger = { ... }
			#	portraits = { ... }
			#	#using "set =" instead of "add" will first clear any portraits already added
			#}
		}		
		
		#species scope
		species = { #generic portrait for a species
			add = {
				portraits = {
					chenjun
				}
			}
		}		
		
		#pop scope
		pop = { #for a specific pop
			add = {
				portraits = {
					chenjun
				}
			}
		}
		
		#leader scope
		leader = { #scientists, generals, admirals, governor
			#ٻ
			add = {
				trigger = {
					 has_trait = leader_trait_chenqian 
				}
				portraits = {
					chenqian
				}
			}
			#ǳǳ
			add = {
				trigger = {
					 has_trait = leader_trait_xuqianqian 
				}
				portraits = {
					xuqianqian
				}
			}
			#ѩ
			add = {
				trigger = {
					 has_trait = leader_trait_linxue 
				}
				portraits = {
					linxue
				}
			}
			#¿
			add = {
				trigger = {
					 has_trait = leader_trait_chenjun
				}
				portraits = {
					chenjun
				}
			}
		}

			
		#leader scope 
		ruler = {
			add = {				
				portraits = {
					chenjun
				}
			}
		}
	}
}