Anti_Threat_Missions.txt

(2 KB) Pobierz
befriend_threat_rival = {

	type = threats_rivals
	
	category = DIP
	
	allow = {
		NOT = { is_rival = FROM }
		NOT = { has_opinion = { who = FROM value = 50 } }
		has_opinion = { who = FROM value = 0 }
		NOT = { war_with = FROM }
		is_neighbor_of = FROM
		FROM = {
			is_subject = no
			knows_country = ROOT
		}
		OR = { 
			NOT = {
				FROM = {
					has_country_flag = befriended_threat_rival_mission
				}
			}
			FROM = {
				had_country_flag = { flag = befriended_threat_rival_mission days = 3650 }
			}
		}
	}
	abort = {
		FROM = { is_subject = yes }
		OR = {
			war_with = FROM
			is_rival = FROM
			exists = no
		}
	}
	success = {
		has_opinion = { who = FROM value = 100 }
	}
	chance = {
		factor = 1100
		modifier = {
			factor = 2
			FROM = { DIP = 6 }
		}
		modifier = {
			factor = 0.5
			NOT = { DIP = 3 }
		}
	}
	effect = {
		FROM = { 
			add_prestige = 5 
			add_dip_power = 25
			set_country_flag = befriended_threat_rival_mission
		}
	}
}

improve_relations_threat = {

	type = threat_countries

	category = DIP

	allow = {
		is_at_war = no
		NOT = { 
			has_opinion = { who = FROM value = 75 } 
		}
		has_opinion = { who = FROM value = 25 }
		OR = { 
			NOT = {
				FROM = {
					has_country_flag = improved_relations_threat_mission
				}
			}
			FROM = {
				had_country_flag = { flag = improved_relations_threat_mission days = 3650 }
			}
		}
		NOT = { government = daimyo }
		NOT = { government = shogunate }
	}
	abort = {
		OR = {
			war_with = FROM
			exists = no
		}
	}
	success = {
		has_opinion = { who = FROM value = 100 }
	}
	chance = {
		factor = 1100
		modifier = {
			factor = 1.25
			primary_culture = FROM
		}
		modifier = {
			factor = 1.1
			religion = FROM
		}
		modifier = {
			factor = 1.1
			FROM = { dip = 3 }
		}
		modifier = {
			factor = 0.8
			FROM = { NOT = { dip = 2 } }
		}
	}
	effect = {
		FROM = { 
			add_prestige = 5 
			add_dip_power = 25
			set_country_flag = improved_relations_threat_mission
		}
	}	
}
Zgłoś jeśli naruszono regulamin