﻿
#######################
#### Way of Living ####
#######################

way_of_living_decision = {
	decision_group_type = admin
	picture = {
		reference = "gfx/interface/illustrations/decisions/way_of_living_decision.dds"
	}
	desc = way_of_living_decision_desc
	sort_order = 1

	is_shown = {
		is_ai = no
		is_landed = yes
	}

	is_valid = {
		age >= 16
	}

	cooldown = { months = 6 }

	widget = {
		gui = "decision_view_widget_option_list_generic"
		controller = decision_option_list_controller
		decision_to_second_step_button = "way_of_living_decision_select"
		show_from_start = yes

		### Reset
		item = {
			value = choose_a_wol_reset
			is_valid = {
                OR = {
                    has_trait = a_wol_warlike
                    has_trait = a_wol_builder
                    has_trait = a_wol_worshiper
                    has_trait = a_wol_collector
                    has_trait = a_wol_manipulator
                    has_trait = a_wol_negotiator
                    has_trait = a_wol_enjoyer

                    has_trait = a_wol_warlike_soft
                    has_trait = a_wol_builder_soft
                    has_trait = a_wol_worshiper_soft
                    has_trait = a_wol_collector_soft
                    has_trait = a_wol_manipulator_soft
                    has_trait = a_wol_negotiator_soft
                    has_trait = a_wol_enjoyer_soft
                }
			}
			localization = choose_a_wol_reset_name
			icon = "gfx/interface/icons/flat_icons/cancel.dds"
		}

		### warlike / belliqueux
		item = {
			value = choose_a_wol_warlike
			is_shown = {
				highest_held_title_tier >= tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_warlike }
			}
			localization = choose_a_wol_warlike_name
			icon = "gfx/interface/icons/traits/wrathful.dds"
		}

		### warlike soft / belliqueux
		item = {
			value = choose_a_wol_warlike_soft
			is_shown = {
				highest_held_title_tier < tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_warlike_soft }
			}
			localization = choose_a_wol_warlike_soft_name
			icon = "gfx/interface/icons/traits/wrathful.dds"
		}

		### builder / bâtisseur
		item = {
			value = choose_a_wol_builder
			is_shown = {
				highest_held_title_tier >= tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_builder }
			}
			localization = choose_a_wol_builder_name
			icon = "gfx/interface/icons/traits/a_wol_architect.dds"
		}

		### builder soft / bâtisseur
		item = {
			value = choose_a_wol_builder_soft
			is_shown = {
				highest_held_title_tier < tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_builder_soft }
			}
			localization = choose_a_wol_builder_soft_name
			icon = "gfx/interface/icons/traits/a_wol_architect.dds"
		}

		### worshiper / adorateur
		item = {
			value = choose_a_wol_worshiper
			is_shown = {
				highest_held_title_tier >= tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_worshiper }
			}
			localization = choose_a_wol_worshiper_name
			icon = "gfx/interface/icons/traits/humble.dds"
		}

		### worshiper soft / adorateur
		item = {
			value = choose_a_wol_worshiper_soft
			is_shown = {
				highest_held_title_tier < tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_worshiper_soft }
			}
			localization = choose_a_wol_worshiper_soft_name
			icon = "gfx/interface/icons/traits/humble.dds"
		}

		### collector / percepteur
		item = {
			value = choose_a_wol_collector
			is_shown = {
				highest_held_title_tier >= tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_collector }
			}
			localization = choose_a_wol_collector_name
			icon = "gfx/interface/icons/traits/greedy.dds"
		}

		### collector soft / percepteur
		item = {
			value = choose_a_wol_collector_soft
			is_shown = {
				highest_held_title_tier < tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_collector_soft }
			}
			localization = choose_a_wol_collector_soft_name
			icon = "gfx/interface/icons/traits/greedy.dds"
		}

		### manipulator / manipulateur
		item = {
			value = choose_a_wol_manipulator
			is_shown = {
				highest_held_title_tier >= tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_manipulator }
			}
			localization = choose_a_wol_manipulator_name
			icon = "gfx/interface/icons/traits/a_wol_schemer.dds"
		}

		### manipulator soft / manipulateur
		item = {
			value = choose_a_wol_manipulator_soft
			is_shown = {
				highest_held_title_tier < tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_manipulator_soft }
			}
			localization = choose_a_wol_manipulator_soft_name
			icon = "gfx/interface/icons/traits/a_wol_schemer.dds"
		}

		### negotiator / négociateur
		item = {
			value = choose_a_wol_negotiator
			is_shown = {
				highest_held_title_tier >= tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_negotiator }
			}
			localization = choose_a_wol_negotiator_name
			icon = "gfx/interface/icons/traits/a_wol_diplomat.dds"
		}

		### negotiator soft / négociateur
		item = {
			value = choose_a_wol_negotiator_soft
			is_shown = {
				highest_held_title_tier < tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_negotiator_soft }
			}
			localization = choose_a_wol_negotiator_soft_name
			icon = "gfx/interface/icons/traits/a_wol_diplomat.dds"
		}

		### enjoyer / bon vivant
		item = {
			value = choose_a_wol_enjoyer
			is_shown = {
				highest_held_title_tier >= tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_enjoyer }
			}
			localization = choose_a_wol_enjoyer_name
			icon = "gfx/interface/icons/traits/a_wol_reveler.dds"
		}

		### enjoyer soft / bon vivant
		item = {
			value = choose_a_wol_enjoyer_soft
			is_shown = {
				highest_held_title_tier < tier_kingdom
			}
			is_valid = {
				NOT = { has_trait = a_wol_enjoyer_soft }
			}
			localization = choose_a_wol_enjoyer_soft_name
			icon = "gfx/interface/icons/traits/a_wol_reveler.dds"
		}
    }

    effect = {
        if = {
            limit = { scope:choose_a_wol_reset = yes }
            stress_impact = { base = major_stress_impact_loss }
        }
        else = { stress_impact = { base = minor_stress_impact_gain } }

        if = {
            limit = { scope:choose_a_wol_warlike = yes }
            add_trait = a_wol_warlike
        }
        else = { remove_trait = a_wol_warlike }

        if = {
            limit = { scope:choose_a_wol_warlike_soft = yes }
            add_trait = a_wol_warlike_soft
        }
        else = { remove_trait = a_wol_warlike_soft }

        if = {
            limit = { scope:choose_a_wol_builder = yes }
            add_trait = a_wol_builder
        }
        else = { remove_trait = a_wol_builder }

        if = {
            limit = { scope:choose_a_wol_builder_soft = yes }
            add_trait = a_wol_builder_soft
        }
        else = { remove_trait = a_wol_builder_soft }

        if = {
            limit = { scope:choose_a_wol_worshiper = yes }
            add_trait = a_wol_worshiper
        }
        else = { remove_trait = a_wol_worshiper }

        if = {
            limit = { scope:choose_a_wol_worshiper_soft = yes }
            add_trait = a_wol_worshiper_soft
        }
        else = { remove_trait = a_wol_worshiper_soft }

        if = {
            limit = { scope:choose_a_wol_collector = yes }
            add_trait = a_wol_collector
        }
        else = { remove_trait = a_wol_collector }

        if = {
            limit = { scope:choose_a_wol_collector_soft = yes }
            add_trait = a_wol_collector_soft
        }
        else = { remove_trait = a_wol_collector_soft }

        if = {
            limit = { scope:choose_a_wol_manipulator = yes }
            add_trait = a_wol_manipulator
        }
        else = { remove_trait = a_wol_manipulator }

        if = {
            limit = { scope:choose_a_wol_manipulator_soft = yes }
            add_trait = a_wol_manipulator_soft
        }
        else = { remove_trait = a_wol_manipulator_soft }

        if = {
            limit = { scope:choose_a_wol_negotiator = yes }
            add_trait = a_wol_negotiator
        }
        else = { remove_trait = a_wol_negotiator }

        if = {
            limit = { scope:choose_a_wol_negotiator_soft = yes }
            add_trait = a_wol_negotiator_soft
        }
        else = { remove_trait = a_wol_negotiator_soft }

        if = {
            limit = { scope:choose_a_wol_enjoyer = yes }
            add_trait = a_wol_enjoyer
        }
        else = { remove_trait = a_wol_enjoyer }

        if = {
            limit = { scope:choose_a_wol_enjoyer_soft = yes }
            add_trait = a_wol_enjoyer_soft
        }
        else = { remove_trait = a_wol_enjoyer_soft }
    }
}
