#########################
###     War Goals     ###
#########################

wg_WL_lustful_spirit_retribution = {
	casus_belli = cb_WL_zinara_retribution
	hide_if_no_cb = yes
	release_occupied_systems_on_status_quo = yes
	
	surrender_acceptance = -50
	
	allowed_peace_offers = {
		status_quo
		surrender
	}
	
	possible = {
		always = no
	}
	on_accept = {
		hidden_effect = {
			from = {
				add_threat = {
					who = root
					amount = 0.5
				}				
			}	
		}
		from = {
			add_modifier = { modifier = humiliated days = 3600 }
		}
	}	
	
	ai_weight = {
		weight = 0
	}
}

wg_WL_steal_lustful_spirit_shard = {
	casus_belli = cb_WL_lustful_spirit_shard 
	
	hide_if_no_cb = yes
	release_occupied_systems_on_status_quo = yes
	
	surrender_acceptance = -50
	
	allowed_peace_offers = {
		status_quo
		surrender
		demand_surrender
	}
	
	possible = {
		custom_tooltip = {
			fail_text = has_claimed_all_systems
			from = {
				is_country_type = default
				any_owned_planet = {
					is_colony = yes
					root = {
						NOT = { has_claim = prev.solar_system }
					}
				}
			}
		}
	}
	
	on_accept = {
		hidden_effect = {
			from = {
				add_threat = {
					who = root
					amount = 0.5
				}
			}
		}
		if = {
			limit = { has_ancrel = yes }
			from = {
				add_modifier = { modifier = humiliated days = 3600 }
				hidden_effect = { country_event = { id = WL_LV_lustful_spirit_shard_events.2 } }
				hidden_effect = { remove_relic = r_WL_lv_zinara }
			}

			hidden_effect = { country_event = { id = WL_LV_lustful_spirit_shard_events.1 } }
			add_relic = r_WL_lv_zinara
		}
		else = {
			from = {
				add_modifier = { modifier = humiliated days = 3600 }
				hidden_effect = { country_event = { id = cWL_LV_lustful_spirit_shard_events.2 } }
			}

			hidden_effect = { country_event = { id = WL_LV_lustful_spirit_shard_events.1 } }
			add_modifier = { modifier = galatron_modifier days = -1 }
		}
	}

	on_status_quo = {
	}

	ai_weight = {
		weight = 1
		modifier = {
			factor = 0
			has_ethic = ethic_gestalt_consciousness
		}
	}
}