﻿# House Name Generation
has_house_generator_essos_culture_trigger  = {
	OR = {
		agot_hf_cusloc_trigger_western_valyrian = yes
		agot_hf_cusloc_trigger_eastern_valyrian = yes
		agot_hf_cusloc_trigger_middle_valyrian = yes
		agot_hf_cusloc_trigger_far_valyrian = yes
		agot_hf_cusloc_trigger_free_city_north = yes
		agot_hf_cusloc_trigger_free_city_mid = yes
		agot_hf_cusloc_trigger_andalosi = yes
		agot_hf_cusloc_trigger_rhoynish = yes
		agot_hf_cusloc_trigger_summer_islander = yes
		agot_hf_cusloc_trigger_sarnori = yes
		agot_hf_cusloc_trigger_qaathi = yes
		agot_hf_cusloc_trigger_ibb = yes
		agot_hf_cusloc_trigger_hyrkooni = yes
		agot_hf_cusloc_trigger_ghis = yes
		agot_hf_cusloc_trigger_lhazar = yes
		agot_hf_cusloc_trigger_dothraki = yes
		agot_hf_cusloc_trigger_jade = yes
		agot_hf_cusloc_trigger_moraqi = yes
		agot_hf_cusloc_trigger_nghai = yes
		agot_hf_cusloc_trigger_sothoryi = yes
		agot_hf_cusloc_trigger_yitish = yes
		agot_hf_cusloc_trigger_shadowlanders = yes
		agot_hf_cusloc_trigger_longnightmen = yes
		agot_hf_cusloc_trigger_ancient = yes
	}
}

##### MOTTO GENERATION

# Westerosi Languages
agot_hf_has_westerosi_languange = {
	AND = {
		agot_hf_has_valyrian_languange = no
		agot_hf_has_rhoynish_languange = no
		agot_hf_has_summer_languange = no
		agot_hf_has_ghis_languange = no
		agot_hf_has_dothraki_languange = no
		agot_hf_has_qaathi_languange = no
		agot_hf_has_lhazreen_languange = no
		agot_hf_has_hyrkooni_languange = no
		agot_hf_has_sarnori_languange = no
		agot_hf_has_ibbenese_languange = no
		agot_hf_has_yitish_languange = no
		agot_hf_has_shadow_languange = no
		agot_hf_has_mythical_languange = no
	}
}

# Valyrian Languages
agot_hf_has_valyrian_languange = {
	OR = {
		agot_hf_cusloc_trigger_eastern_valyrian = yes
		agot_hf_cusloc_trigger_middle_valyrian = yes
		agot_hf_cusloc_trigger_free_city_north = yes
		agot_hf_cusloc_trigger_free_city_mid = yes
		agot_hf_cusloc_trigger_qaathi = yes
		agot_hf_cusloc_trigger_ghis = yes
	}
}

# Rhoynish Languages
agot_hf_has_rhoynish_languange = {
	OR = {
		agot_hf_cusloc_trigger_rhoynish = yes
		has_culture = culture:norvoshi
	}
}

# Summer Languages
agot_hf_has_summer_languange = {
	agot_hf_cusloc_trigger_summer_islander = yes
}

# Ghis Languages
agot_hf_has_ghis_languange = {
	agot_hf_cusloc_trigger_ghis = yes
}

# Dothraki Languages
agot_hf_has_dothraki_languange = {
	agot_hf_cusloc_trigger_dothraki = yes
}

# Qaathi Languages
agot_hf_has_qaathi_languange = {
	agot_hf_cusloc_trigger_qaathi = yes
}

# Lhazreen Languages
agot_hf_has_lhazreen_languange = {
	agot_hf_cusloc_trigger_lhazar = yes
}

# Hyrkooni Languages
agot_hf_has_hyrkooni_languange = {
	agot_hf_cusloc_trigger_hyrkooni = yes
}

# Sarnori Languages
agot_hf_has_sarnori_languange = {
	agot_hf_cusloc_trigger_sarnori = yes
}

# Ibbenese Languages
agot_hf_has_ibbenese_languange = {
	agot_hf_cusloc_trigger_ibb = yes
}

### TODOOOOOOOOOOOOOOOO

# YiTish Languages
agot_hf_has_yitish_languange = {
	OR = {
		agot_hf_cusloc_trigger_nghai = yes
		agot_hf_cusloc_trigger_yitish = yes
		agot_hf_cusloc_trigger_jade = yes
		agot_hf_cusloc_trigger_moraqi = yes
	}
}

# Shadow Languages
agot_hf_has_shadow_languange = {
	OR = {
		agot_hf_cusloc_trigger_shadowlanders = yes
		agot_hf_cusloc_trigger_sothoryi = yes
	}
}

# Mythical Languages
agot_hf_has_mythical_languange = {
	OR = {
		agot_hf_cusloc_trigger_longnightmen = yes
		agot_hf_cusloc_trigger_ancient = yes
	}
}

### CULTURE BASED NAME CUSLOC TRIGGERS

# WILDLING

has_house_generator_wildling_culture_trigger  = {
	OR = {
		has_culture = culture:first_clan
		has_culture = culture:thenn
		has_culture = culture:fangman
		has_culture = culture:forestman
		has_culture = culture:hornfoot
		has_culture = culture:nightrunner
		has_culture = culture:lakefolk
		has_culture = culture:frozen_shoreman
		has_culture = culture:milkwaterman
		has_culture = culture:cave_dweller
		has_culture = culture:ice_riverman
		has_culture = culture:moon_clan
	}
}

# VALYRIAN

agot_hf_cusloc_trigger_western_valyrian = {
	OR = {
		has_culture = culture:valyrian_original
		has_culture = culture:high_valyrian
		has_culture = culture:westerosi_valyrian
	}
}

agot_hf_cusloc_trigger_eastern_valyrian = {
	OR = {
		has_culture = culture:essosi_valyrian
		has_culture = culture:tolosi
		has_culture = culture:mantaryan
		has_culture = culture:elyrian
		has_culture = culture:painted_clansman
	}
}

agot_hf_cusloc_trigger_middle_valyrian = {
	OR = {
		has_culture = culture:volantene
		has_culture = culture:hartalari
		has_culture = culture:essarian
		has_culture = culture:lyseni
		has_culture = culture:tyroshi
	}
}

agot_hf_cusloc_trigger_far_valyrian = {
	OR = {
		has_culture = culture:gogossite
	}
}

# FREE CITY

agot_hf_cusloc_trigger_free_city_north = {
	OR = {
		has_culture = culture:braavosi
		has_culture = culture:lorathi
	}
}

agot_hf_cusloc_trigger_free_city_mid = {
	OR = {
		has_culture = culture:qohorik
		has_culture = culture:norvoshi
		has_culture = culture:myrish
		has_culture = culture:pentoshi
		has_culture = culture:nonteloshi
	}
}

# NEAR ESSOS
agot_hf_cusloc_trigger_andalosi = {
	OR = {
		has_culture = culture:andal
		has_culture = culture:andalosi
		has_culture = culture:axeman
	}
}

agot_hf_cusloc_trigger_rhoynish = {
	OR = {
		has_culture = culture:rhoynar_original
		has_culture = culture:chroyanar
		has_culture = culture:mellar
		has_culture = culture:noynar
		has_culture = culture:qhoynar
		has_culture = culture:sarhar
		has_culture = culture:sarar
		has_culture = culture:abular
	}
}

# CENTRAL ESSOS
agot_hf_cusloc_trigger_sarnori = {
	OR = {
		has_culture = culture:cymmeri
		has_culture = culture:gipps
		has_culture = culture:zoqora
		has_culture = culture:tagaez_fen
		has_culture = culture:trimbaez_fen
		has_culture = culture:goraez_fen
		has_culture = culture:zanhar_fen
		has_culture = culture:madekh_fen
		has_culture = culture:gilal_fen
		has_culture = culture:cenaakh_fen
		has_culture = culture:giren_fen
		has_culture = culture:zivylar_fen
		has_culture = culture:cewi_fen
		has_culture = culture:dawiz_fen
	}
}

agot_hf_cusloc_trigger_qaathi = {
	OR = {
		has_culture = culture:qaathi
		has_culture = culture:qartheen
		has_culture = culture:qaleen
	}
}

agot_hf_cusloc_trigger_ibb = {
	OR = {
		has_culture = culture:ibbenese
		has_culture = culture:ib_sarese
		has_culture = culture:ibbatese
	}
}

agot_hf_cusloc_trigger_hyrkooni = {
	OR = {
		has_culture = culture:hyrkoonan_original
		has_culture = culture:bayasabhadan
		has_culture = culture:kayakayanayan
		has_culture = culture:shamyrianan
	}
}

agot_hf_cusloc_trigger_ghis = {
	OR = {
		has_culture = culture:ghiscari_original
		has_culture = culture:astapori
		has_culture = culture:hazdahni
		has_culture = culture:meereenese
		has_culture = culture:shuzduni
		has_culture = culture:yunkaii
		has_culture = culture:ghaeni
		has_culture = culture:ghardaqi
		has_culture = culture:goroshari
		has_culture = culture:zamettari
		has_culture = culture:gorgari
	}
}

agot_hf_cusloc_trigger_lhazar = {
	OR = {
		has_culture = culture:lhazareen
	}
}

agot_hf_cusloc_trigger_omberi = {
	OR = {
		has_culture = culture:omberi
	}
}

agot_hf_cusloc_trigger_dothraki = {
	OR = {
		has_culture = culture:dothraki
	}
}

# SUMMER ISLANDS
agot_hf_cusloc_trigger_summer_islander = {
	OR = {
		has_culture = culture:jhalai
		has_culture = culture:moluuni
		has_culture = culture:omborui
		has_culture = culture:walanoi
		has_culture = culture:naathi
		has_culture = culture:abular
	}
}

# FAR ESSOS
agot_hf_cusloc_trigger_nghai = {
	OR = {
		has_culture = culture:jogos_nhai
		has_culture = culture:nefer
	}
}

agot_hf_cusloc_trigger_yitish = {
	OR = {
		has_culture = culture:zhenzhu_ren
		has_culture = culture:feicui_ren
		has_culture = culture:bixi_ren
		has_culture = culture:haungyu_ren
		has_culture = culture:aobao_ren
		has_culture = culture:heinao_ren
		has_culture = culture:shan_ren
	}
}

agot_hf_cusloc_trigger_jade = {
	OR = {
		has_culture = culture:jade_islander
		has_culture = culture:lengii
		has_culture = culture:manticorian
		has_culture = culture:marahaiian
	}
}

agot_hf_cusloc_trigger_moraqi = {
	OR = {
		has_culture = culture:moraqi
		has_culture = culture:farosi
		has_culture = culture:vahari
		has_culture = culture:zabhadi
	}
}

agot_hf_cusloc_trigger_sothoryi = {
	OR = {
		has_culture = culture:yeenite
		has_culture = culture:brindled_man
		has_culture = culture:basiliskite
		has_culture = culture:gorgari
		agot_hf_cusloc_trigger_far_valyrian = yes
	}
}

agot_hf_cusloc_trigger_shadowlanders = {
	OR = {
		has_culture = culture:asshaii
		has_culture = culture:shadowman
	}
}

# MYTHICAL
agot_hf_cusloc_trigger_longnightmen = {
	OR = {
		has_culture = culture:lion_man
		has_culture = culture:bloodless_man
		has_culture = culture:carcosan
		has_culture = culture:dathian
		has_culture = culture:grey_man
		has_culture = culture:fish_man
		has_culture = culture:shryke
		has_culture = culture:winged_man
		has_culture = culture:mossovite
	}
}

agot_hf_cusloc_trigger_ancient = {
	OR = {
		has_culture = culture:children_culture
		has_culture = culture:dragon_culture
		has_culture = culture:jhogwin
		has_culture = culture:giant_culture
		has_culture = culture:others_culture
		has_culture = culture:ifequevron
		has_culture = culture:fisher_queen_race
		has_culture = culture:mazemaker
		has_culture = culture:unknown_culture
	}
}

# Combined

agot_hf_cusloc_trigger_mythical = {
	OR = {
		agot_hf_cusloc_trigger_longnightmen = yes
		agot_hf_cusloc_trigger_ancient = yes
	}
}

agot_hf_cusloc_trigger_dothraki_lhazar = {
	OR = {
		agot_hf_cusloc_trigger_dothraki = yes
		agot_hf_cusloc_trigger_lhazar = yes
		agot_hf_cusloc_trigger_omberi = yes
	}
}

agot_hf_cusloc_trigger_ghis_far_valyrian = {
	OR = {
		agot_hf_cusloc_trigger_ghis = yes
		agot_hf_cusloc_trigger_lhazar = yes
		agot_hf_cusloc_trigger_far_valyrian = yes
	}
}

agot_hf_cusloc_trigger_all_valyrian = {
	OR = {
		agot_hf_cusloc_trigger_western_valyrian = yes
		agot_hf_cusloc_trigger_eastern_valyrian = yes
		agot_hf_cusloc_trigger_middle_valyrian = yes
		agot_hf_cusloc_trigger_far_valyrian = yes
	}
}

agot_hf_cusloc_trigger_west_fc_valyrian = {
	OR = {
		agot_hf_cusloc_trigger_western_valyrian = yes
		agot_hf_cusloc_trigger_eastern_valyrian = yes
		agot_hf_cusloc_trigger_middle_valyrian = yes
	}
}

agot_hf_cusloc_trigger_east_mainland_valyrian = {
	OR = {
		agot_hf_cusloc_trigger_free_city_north = yes
		agot_hf_cusloc_trigger_free_city_mid = yes
		agot_hf_cusloc_trigger_middle_valyrian = yes
		agot_hf_cusloc_trigger_shadowlanders = yes
	}
}

agot_hf_cusloc_trigger_rhoynish_fc = {
	OR = {
		agot_hf_cusloc_trigger_rhoynish = yes
		agot_hf_cusloc_trigger_free_city_mid = yes
	}
}

agot_hf_cusloc_trigger_sarnori_fc = {
	OR = {
		agot_hf_cusloc_trigger_sarnori = yes
		agot_hf_cusloc_trigger_free_city_mid = yes
		agot_hf_cusloc_trigger_omberi = yes
	}
}

agot_hf_cusloc_trigger_yiti_jade = {
	OR = {
		agot_hf_cusloc_trigger_yitish = yes
		agot_hf_cusloc_trigger_jade = yes
	}
}

agot_hf_cusloc_trigger_sothoryi_jade = {
	OR = {
		agot_hf_cusloc_trigger_sothoryi = yes
		agot_hf_cusloc_trigger_jade = yes
	}
}

agot_hf_cusloc_trigger_qaathi_moraqi = {
	OR = {
		agot_hf_cusloc_trigger_qaathi = yes
		agot_hf_cusloc_trigger_moraqi = yes
	}
}

agot_hf_cusloc_trigger_rhoynish_and_mythical = {
	OR = {
		agot_hf_cusloc_trigger_rhoynish = yes
		agot_hf_cusloc_trigger_mythical = yes
	}
}

agot_hf_cusloc_trigger_qaathi_and_mythical = {
	OR = {
		agot_hf_cusloc_trigger_qaathi = yes
		agot_hf_cusloc_trigger_mythical = yes
	}
}