﻿DI_lifestyle_diplomacy_present_effect = {
    if = { limit = { NOT = { has_perk = a_life_of_glory_perk } } add_perk = a_life_of_glory_perk }
    if = { limit = { NOT = { has_perk = accomplished_forger_perk } } add_perk = accomplished_forger_perk }
    if = { limit = { NOT = { has_perk = adaptive_traditions_perk } } add_perk = adaptive_traditions_perk }
    if = { limit = { NOT = { has_perk = august_perk } } add_perk = august_perk }
    if = { limit = { NOT = { has_perk = befriend_perk } } add_perk = befriend_perk }
    if = { limit = { NOT = { has_perk = benevolent_intent_perk } } add_perk = benevolent_intent_perk }
    if = { limit = { NOT = { has_perk = confidants_perk } } add_perk = confidants_perk }
    if = { limit = { NOT = { has_perk = defensive_negotiations_perk } } add_perk = defensive_negotiations_perk }
    if = { limit = { NOT = { has_perk = dignitas_perk } } add_perk = dignitas_perk }
    if = { limit = { NOT = { has_perk = diplomat_perk } } add_perk = diplomat_perk }
    if = { limit = { NOT = { has_perk = ducal_conquest_perk } } add_perk = ducal_conquest_perk }
    if = { limit = { NOT = { has_perk = embassies_perk } } add_perk = embassies_perk }
    if = { limit = { NOT = { has_perk = familial_familiar_perk } } add_perk = familial_familiar_perk }
    if = { limit = { NOT = { has_perk = family_man_perk } } add_perk = family_man_perk }
    if = { limit = { NOT = { has_perk = firm_hand_perk } } add_perk = firm_hand_perk }
    if = { limit = { NOT = { has_perk = flatterer_perk } } add_perk = flatterer_perk }
    if = { limit = { NOT = { has_perk = flexible_truces_perk } } add_perk = flexible_truces_perk }
    if = { limit = { NOT = { has_perk = forced_vassalage_perk } } add_perk = forced_vassalage_perk }
    if = { limit = { NOT = { has_perk = friendly_counsel_perk } } add_perk = friendly_counsel_perk }
    if = { limit = { NOT = { has_perk = groomed_to_rule_perk } } add_perk = groomed_to_rule_perk }
    if = { limit = { NOT = { has_perk = inspiring_rule_perk } } add_perk = inspiring_rule_perk }
    if = { limit = { NOT = { has_perk = praetorian_guard_perk } } add_perk = praetorian_guard_perk }
    if = { limit = { NOT = { has_perk = sound_foundations_perk } } add_perk = sound_foundations_perk }
    if = { limit = { NOT = { has_perk = thicker_than_water_perk } } add_perk = thicker_than_water_perk }
    if = { limit = { NOT = { has_perk = thoughtful_perk } } add_perk = thoughtful_perk }
    if = { limit = { NOT = { has_perk = true_ruler_perk } } add_perk = true_ruler_perk }
    if = { limit = { NOT = { has_perk = writing_history_perk } } add_perk = writing_history_perk }
    add_character_modifier = {
        modifier = no_lifestyle_diplomacy
        days = -1
    }
}

DI_lifestyle_diplomacy_present_no_effect = {
    if = { limit = { has_perk = a_life_of_glory_perk } remove_perk = a_life_of_glory_perk }
    if = { limit = { has_perk = accomplished_forger_perk } remove_perk = accomplished_forger_perk }
    if = { limit = { has_perk = adaptive_traditions_perk } remove_perk = adaptive_traditions_perk }
    if = { limit = { has_perk = august_perk } remove_perk = august_perk }
    if = { limit = { has_perk = befriend_perk } remove_perk = befriend_perk }
    if = { limit = { has_perk = benevolent_intent_perk } remove_perk = benevolent_intent_perk }
    if = { limit = { has_perk = confidants_perk } remove_perk = confidants_perk }
    if = { limit = { has_perk = defensive_negotiations_perk } remove_perk = defensive_negotiations_perk }
    if = { limit = { has_perk = dignitas_perk } remove_perk = dignitas_perk }
    if = { limit = { has_perk = diplomat_perk } remove_perk = diplomat_perk }
    if = { limit = { has_perk = ducal_conquest_perk } remove_perk = ducal_conquest_perk }
    if = { limit = { has_perk = embassies_perk } remove_perk = embassies_perk }
    if = { limit = { has_perk = familial_familiar_perk } remove_perk = familial_familiar_perk }
    if = { limit = { has_perk = family_man_perk } remove_perk = family_man_perk }
    if = { limit = { has_perk = firm_hand_perk } remove_perk = firm_hand_perk }
    if = { limit = { has_perk = flatterer_perk } remove_perk = flatterer_perk }
    if = { limit = { has_perk = flexible_truces_perk } remove_perk = flexible_truces_perk }
    if = { limit = { has_perk = forced_vassalage_perk } remove_perk = forced_vassalage_perk }
    if = { limit = { has_perk = friendly_counsel_perk } remove_perk = friendly_counsel_perk }
    if = { limit = { has_perk = groomed_to_rule_perk } remove_perk = groomed_to_rule_perk }
    if = { limit = { has_perk = inspiring_rule_perk } remove_perk = inspiring_rule_perk }
    if = { limit = { has_perk = praetorian_guard_perk } remove_perk = praetorian_guard_perk }
    if = { limit = { has_perk = sound_foundations_perk } remove_perk = sound_foundations_perk }
    if = { limit = { has_perk = thicker_than_water_perk } remove_perk = thicker_than_water_perk }
    if = { limit = { has_perk = thoughtful_perk } remove_perk = thoughtful_perk }
    if = { limit = { has_perk = true_ruler_perk } remove_perk = true_ruler_perk }
    if = { limit = { has_perk = writing_history_perk } remove_perk = writing_history_perk }
    remove_trait = august
    remove_trait = diplomat
    remove_trait = family_first
    remove_character_modifier = no_lifestyle_diplomacy
}

DI_lifestyle_intrigue_present_effect = {
    if = { limit = { NOT = { has_perk = a_job_done_right_perk } } add_perk = a_job_done_right_perk }
    if = { limit = { NOT = { has_perk = charismatic_perk } } add_perk = charismatic_perk }
    if = { limit = { NOT = { has_perk = convincing_perk } } add_perk = convincing_perk }
    if = { limit = { NOT = { has_perk = court_of_shadows_perk } } add_perk = court_of_shadows_perk }
    if = { limit = { NOT = { has_perk = dark_insights_perk } } add_perk = dark_insights_perk }
    if = { limit = { NOT = { has_perk = digging_for_dirt_perk } } add_perk = digging_for_dirt_perk }
    if = { limit = { NOT = { has_perk = divine_retribution_perk } } add_perk = divine_retribution_perk }
    if = { limit = { NOT = { has_perk = dreadful_perk } } add_perk = dreadful_perk }
    if = { limit = { NOT = { has_perk = enticing_opportunity_perk } } add_perk = enticing_opportunity_perk }
    if = { limit = { NOT = { has_perk = fear_tax_perk } } add_perk = fear_tax_perk }
    if = { limit = { NOT = { has_perk = forever_infamous_perk } } add_perk = forever_infamous_perk }
    if = { limit = { NOT = { has_perk = graceful_recovery_perk } } add_perk = graceful_recovery_perk }
    if = { limit = { NOT = { has_perk = home_advantage_perk } } add_perk = home_advantage_perk }
    if = { limit = { NOT = { has_perk = innocent_children_perk } } add_perk = innocent_children_perk }
    if = { limit = { NOT = { has_perk = instructed_spies_perk } } add_perk = instructed_spies_perk }
    if = { limit = { NOT = { has_perk = kidnapper_perk } } add_perk = kidnapper_perk }
    if = { limit = { NOT = { has_perk = like_weed_in_a_garden_perk } } add_perk = like_weed_in_a_garden_perk }
    if = { limit = { NOT = { has_perk = little_birds_perk } } add_perk = little_birds_perk }
    if = { limit = { NOT = { has_perk = malice_implicit_perk } } add_perk = malice_implicit_perk }
    if = { limit = { NOT = { has_perk = master_of_masses_perk } } add_perk = master_of_masses_perk }
    if = { limit = { NOT = { has_perk = mortal_adoration_perk } } add_perk = mortal_adoration_perk }
    if = { limit = { NOT = { has_perk = omerta_perk } } add_perk = omerta_perk }
    if = { limit = { NOT = { has_perk = prepared_for_anything_perk } } add_perk = prepared_for_anything_perk }
    if = { limit = { NOT = { has_perk = prison_feudal_complex_perk } } add_perk = prison_feudal_complex_perk }
    if = { limit = { NOT = { has_perk = schemer_perk } } add_perk = schemer_perk }
    if = { limit = { NOT = { has_perk = seducer_perk } } add_perk = seducer_perk }
    if = { limit = { NOT = { has_perk = sleeper_cells_perk } } add_perk = sleeper_cells_perk }
    if = { limit = { NOT = { has_perk = smooth_operator_perk } } add_perk = smooth_operator_perk }
    if = { limit = { NOT = { has_perk = spider_perk } } add_perk = spider_perk }
    if = { limit = { NOT = { has_perk = subtle_desire_perk } } add_perk = subtle_desire_perk }
    if = { limit = { NOT = { has_perk = swift_execution_perk } } add_perk = swift_execution_perk }
    if = { limit = { NOT = { has_perk = thriving_in_chaos_perk } } add_perk = thriving_in_chaos_perk }
    if = { limit = { NOT = { has_perk = torturer_perk } } add_perk = torturer_perk }
    if = { limit = { NOT = { has_perk = truth_is_relative_perk } } add_perk = truth_is_relative_perk }
    if = { limit = { NOT = { has_perk = twice_schemed_perk } } add_perk = twice_schemed_perk }
    if = { limit = { NOT = { has_perk = unshackled_lust_perk } } add_perk = unshackled_lust_perk }
    add_character_modifier = {
        modifier = no_lifestyle_intrigue
        days = -1
    }
}

DI_lifestyle_intrigue_present_no_effect = {
    if = { limit = { has_perk = a_job_done_right_perk } remove_perk = a_job_done_right_perk }
    if = { limit = { has_perk = charismatic_perk } remove_perk = charismatic_perk }
    if = { limit = { has_perk = convincing_perk } remove_perk = convincing_perk }
    if = { limit = { has_perk = court_of_shadows_perk } remove_perk = court_of_shadows_perk }
    if = { limit = { has_perk = dark_insights_perk } remove_perk = dark_insights_perk }
    if = { limit = { has_perk = digging_for_dirt_perk } remove_perk = digging_for_dirt_perk }
    if = { limit = { has_perk = divine_retribution_perk } remove_perk = divine_retribution_perk }
    if = { limit = { has_perk = dreadful_perk } remove_perk = dreadful_perk }
    if = { limit = { has_perk = enticing_opportunity_perk } remove_perk = enticing_opportunity_perk }
    if = { limit = { has_perk = fear_tax_perk } remove_perk = fear_tax_perk }
    if = { limit = { has_perk = forever_infamous_perk } remove_perk = forever_infamous_perk }
    if = { limit = { has_perk = graceful_recovery_perk } remove_perk = graceful_recovery_perk }
    if = { limit = { has_perk = home_advantage_perk } remove_perk = home_advantage_perk }
    if = { limit = { has_perk = innocent_children_perk } remove_perk = innocent_children_perk }
    if = { limit = { has_perk = instructed_spies_perk } remove_perk = instructed_spies_perk }
    if = { limit = { has_perk = kidnapper_perk } remove_perk = kidnapper_perk }
    if = { limit = { has_perk = like_weed_in_a_garden_perk } remove_perk = like_weed_in_a_garden_perk }
    if = { limit = { has_perk = little_birds_perk } remove_perk = little_birds_perk }
    if = { limit = { has_perk = malice_implicit_perk } remove_perk = malice_implicit_perk }
    if = { limit = { has_perk = master_of_masses_perk } remove_perk = master_of_masses_perk }
    if = { limit = { has_perk = mortal_adoration_perk } remove_perk = mortal_adoration_perk }
    if = { limit = { has_perk = omerta_perk } remove_perk = omerta_perk }
    if = { limit = { has_perk = prepared_for_anything_perk } remove_perk = prepared_for_anything_perk }
    if = { limit = { has_perk = prison_feudal_complex_perk } remove_perk = prison_feudal_complex_perk }
    if = { limit = { has_perk = schemer_perk } remove_perk = schemer_perk }
    if = { limit = { has_perk = seducer_perk } remove_perk = seducer_perk }
    if = { limit = { has_perk = sleeper_cells_perk } remove_perk = sleeper_cells_perk }
    if = { limit = { has_perk = smooth_operator_perk } remove_perk = smooth_operator_perk }
    if = { limit = { has_perk = spider_perk } remove_perk = spider_perk }
    if = { limit = { has_perk = subtle_desire_perk } remove_perk = subtle_desire_perk }
    if = { limit = { has_perk = swift_execution_perk } remove_perk = swift_execution_perk }
    if = { limit = { has_perk = thriving_in_chaos_perk } remove_perk = thriving_in_chaos_perk }
    if = { limit = { has_perk = torturer_perk } remove_perk = torturer_perk }
    if = { limit = { has_perk = truth_is_relative_perk } remove_perk = truth_is_relative_perk }
    if = { limit = { has_perk = twice_schemed_perk } remove_perk = twice_schemed_perk }
    if = { limit = { has_perk = unshackled_lust_perk } remove_perk = unshackled_lust_perk }
    remove_trait = schemer
    remove_trait = seducer
    remove_trait = spider
    remove_trait = torturer
    remove_character_modifier = no_lifestyle_intrigue
}

DI_lifestyle_learning_present_effect = {
    if = { limit = { NOT = { has_perk = anatomical_studies_perk } } add_perk = anatomical_studies_perk }
    if = { limit = { NOT = { has_perk = apostate_perk } } add_perk = apostate_perk }
    if = { limit = { NOT = { has_perk = carefree_perk } } add_perk = carefree_perk }
    if = { limit = { NOT = { has_perk = church_and_state_perk } } add_perk = church_and_state_perk }
    if = { limit = { NOT = { has_perk = clerical_justifications_perk } } add_perk = clerical_justifications_perk }
    if = { limit = { NOT = { has_perk = defender_of_the_faith_perk } } add_perk = defender_of_the_faith_perk }
    if = { limit = { NOT = { has_perk = faithful_perk } } add_perk = faithful_perk }
    if = { limit = { NOT = { has_perk = healthy_perk } } add_perk = healthy_perk }
    if = { limit = { NOT = { has_perk = iron_constitution_perk } } add_perk = iron_constitution_perk }
    if = { limit = { NOT = { has_perk = know_thyself_perk } } add_perk = know_thyself_perk }
    if = { limit = { NOT = { has_perk = learn_on_the_job_perk } } add_perk = learn_on_the_job_perk }
    if = { limit = { NOT = { has_perk = mental_resilience_perk } } add_perk = mental_resilience_perk }
    if = { limit = { NOT = { has_perk = open_minded_perk } } add_perk = open_minded_perk }
    if = { limit = { NOT = { has_perk = pedagogy_perk } } add_perk = pedagogy_perk }
    if = { limit = { NOT = { has_perk = planned_cultivation_perk } } add_perk = planned_cultivation_perk }
    if = { limit = { NOT = { has_perk = prophet_perk } } add_perk = prophet_perk }
    if = { limit = { NOT = { has_perk = radiant_perk } } add_perk = radiant_perk }
    if = { limit = { NOT = { has_perk = religious_icon_perk } } add_perk = religious_icon_perk }
    if = { limit = { NOT = { has_perk = restraint_perk } } add_perk = restraint_perk }
    if = { limit = { NOT = { has_perk = sanctioned_loopholes_perk } } add_perk = sanctioned_loopholes_perk }
    if = { limit = { NOT = { has_perk = scholar_perk } } add_perk = scholar_perk }
    if = { limit = { NOT = { has_perk = scholarly_circles_perk } } add_perk = scholarly_circles_perk }
    if = { limit = { NOT = { has_perk = scientific_perk } } add_perk = scientific_perk }
    if = { limit = { NOT = { has_perk = theologian_perk } } add_perk = theologian_perk }
    if = { limit = { NOT = { has_perk = wash_your_hands_perk } } add_perk = wash_your_hands_perk }
    if = { limit = { NOT = { has_perk = whole_of_body_perk } } add_perk = whole_of_body_perk }
    if = { limit = { NOT = { has_perk = zealous_proselytizer_perk } } add_perk = zealous_proselytizer_perk }
    add_character_modifier = {
        modifier = no_lifestyle_learning
        days = -1
    }
}

DI_lifestyle_learning_present_no_effect = {
    if = { limit = { has_perk = anatomical_studies_perk } remove_perk = anatomical_studies_perk }
    if = { limit = { has_perk = apostate_perk } remove_perk = apostate_perk }
    if = { limit = { has_perk = carefree_perk } remove_perk = carefree_perk }
    if = { limit = { has_perk = church_and_state_perk } remove_perk = church_and_state_perk }
    if = { limit = { has_perk = clerical_justifications_perk } remove_perk = clerical_justifications_perk }
    if = { limit = { has_perk = defender_of_the_faith_perk } remove_perk = defender_of_the_faith_perk }
    if = { limit = { has_perk = faithful_perk } remove_perk = faithful_perk }
    if = { limit = { has_perk = healthy_perk } remove_perk = healthy_perk }
    if = { limit = { has_perk = iron_constitution_perk } remove_perk = iron_constitution_perk }
    if = { limit = { has_perk = know_thyself_perk } remove_perk = know_thyself_perk }
    if = { limit = { has_perk = learn_on_the_job_perk } remove_perk = learn_on_the_job_perk }
    if = { limit = { has_perk = mental_resilience_perk } remove_perk = mental_resilience_perk }
    if = { limit = { has_perk = open_minded_perk } remove_perk = open_minded_perk }
    if = { limit = { has_perk = pedagogy_perk } remove_perk = pedagogy_perk }
    if = { limit = { has_perk = planned_cultivation_perk } remove_perk = planned_cultivation_perk }
    if = { limit = { has_perk = prophet_perk } remove_perk = prophet_perk }
    if = { limit = { has_perk = radiant_perk } remove_perk = radiant_perk }
    if = { limit = { has_perk = religious_icon_perk } remove_perk = religious_icon_perk }
    if = { limit = { has_perk = restraint_perk } remove_perk = restraint_perk }
    if = { limit = { has_perk = sanctioned_loopholes_perk } remove_perk = sanctioned_loopholes_perk }
    if = { limit = { has_perk = scholar_perk } remove_perk = scholar_perk }
    if = { limit = { has_perk = scholarly_circles_perk } remove_perk = scholarly_circles_perk }
    if = { limit = { has_perk = scientific_perk } remove_perk = scientific_perk }
    if = { limit = { has_perk = theologian_perk } remove_perk = theologian_perk }
    if = { limit = { has_perk = wash_your_hands_perk } remove_perk = wash_your_hands_perk }
    if = { limit = { has_perk = whole_of_body_perk } remove_perk = whole_of_body_perk }
    if = { limit = { has_perk = zealous_proselytizer_perk } remove_perk = zealous_proselytizer_perk }
    remove_trait = scholar
    remove_trait = theologian
    remove_trait = whole_of_body
    remove_character_modifier = no_lifestyle_learning
}

DI_lifestyle_martial_present_effect = {
    if = { limit = { NOT = { has_perk = a_mans_home_perk } } add_perk = a_mans_home_perk }
    if = { limit = { NOT = { has_perk = absolute_control_perk } } add_perk = absolute_control_perk }
    if = { limit = { NOT = { has_perk = bellum_justum_perk } } add_perk = bellum_justum_perk }
    if = { limit = { NOT = { has_perk = chivalric_dominance_perk } } add_perk = chivalric_dominance_perk }
    if = { limit = { NOT = { has_perk = courtship_perk } } add_perk = courtship_perk }
    if = { limit = { NOT = { has_perk = enduring_hardships_perk } } add_perk = enduring_hardships_perk }
    if = { limit = { NOT = { has_perk = engineered_for_destruction_perk } } add_perk = engineered_for_destruction_perk }
    if = { limit = { NOT = { has_perk = envelopment_perk } } add_perk = envelopment_perk }
    if = { limit = { NOT = { has_perk = gallant_perk } } add_perk = gallant_perk }
    if = { limit = { NOT = { has_perk = hard_rule_perk } } add_perk = hard_rule_perk }
    if = { limit = { NOT = { has_perk = hit_and_run_perk } } add_perk = hit_and_run_perk }
    if = { limit = { NOT = { has_perk = kingsguard_perk } } add_perk = kingsguard_perk }
    if = { limit = { NOT = { has_perk = living_off_the_land_perk } } add_perk = living_off_the_land_perk }
    if = { limit = { NOT = { has_perk = loyalty_and_respect_perk } } add_perk = loyalty_and_respect_perk }
    if = { limit = { NOT = { has_perk = never_back_down_perk } } add_perk = never_back_down_perk }
    if = { limit = { NOT = { has_perk = organized_retreat_perk } } add_perk = organized_retreat_perk }
    if = { limit = { NOT = { has_perk = overseer_perk } } add_perk = overseer_perk }
    if = { limit = { NOT = { has_perk = parthian_tactics_perk } } add_perk = parthian_tactics_perk }
    if = { limit = { NOT = { has_perk = peacemaker_perk } } add_perk = peacemaker_perk }
    if = { limit = { NOT = { has_perk = prepared_conscription_perk } } add_perk = prepared_conscription_perk }
    if = { limit = { NOT = { has_perk = promising_prospects_perk } } add_perk = promising_prospects_perk }
    if = { limit = { NOT = { has_perk = sappers_perk } } add_perk = sappers_perk }
    if = { limit = { NOT = { has_perk = serve_the_crown_perk } } add_perk = serve_the_crown_perk }
    if = { limit = { NOT = { has_perk = soldiers_of_lesser_fortune_perk } } add_perk = soldiers_of_lesser_fortune_perk }
    if = { limit = { NOT = { has_perk = stalwart_leader_perk } } add_perk = stalwart_leader_perk }
    if = { limit = { NOT = { has_perk = strategist_perk } } add_perk = strategist_perk }
    if = { limit = { NOT = { has_perk = strict_organization_perk } } add_perk = strict_organization_perk }
    add_character_modifier = {
        modifier = no_lifestyle_martial
        days = -1
    }
}

DI_lifestyle_martial_present_no_effect = {
    if = { limit = { has_perk = a_mans_home_perk } remove_perk = a_mans_home_perk }
    if = { limit = { has_perk = absolute_control_perk } remove_perk = absolute_control_perk }
    if = { limit = { has_perk = bellum_justum_perk } remove_perk = bellum_justum_perk }
    if = { limit = { has_perk = chivalric_dominance_perk } remove_perk = chivalric_dominance_perk }
    if = { limit = { has_perk = courtship_perk } remove_perk = courtship_perk }
    if = { limit = { has_perk = enduring_hardships_perk } remove_perk = enduring_hardships_perk }
    if = { limit = { has_perk = engineered_for_destruction_perk } remove_perk = engineered_for_destruction_perk }
    if = { limit = { has_perk = envelopment_perk } remove_perk = envelopment_perk }
    if = { limit = { has_perk = gallant_perk } remove_perk = gallant_perk }
    if = { limit = { has_perk = hard_rule_perk } remove_perk = hard_rule_perk }
    if = { limit = { has_perk = hit_and_run_perk } remove_perk = hit_and_run_perk }
    if = { limit = { has_perk = kingsguard_perk } remove_perk = kingsguard_perk }
    if = { limit = { has_perk = living_off_the_land_perk } remove_perk = living_off_the_land_perk }
    if = { limit = { has_perk = loyalty_and_respect_perk } remove_perk = loyalty_and_respect_perk }
    if = { limit = { has_perk = never_back_down_perk } remove_perk = never_back_down_perk }
    if = { limit = { has_perk = organized_retreat_perk } remove_perk = organized_retreat_perk }
    if = { limit = { has_perk = overseer_perk } remove_perk = overseer_perk }
    if = { limit = { has_perk = parthian_tactics_perk } remove_perk = parthian_tactics_perk }
    if = { limit = { has_perk = peacemaker_perk } remove_perk = peacemaker_perk }
    if = { limit = { has_perk = prepared_conscription_perk } remove_perk = prepared_conscription_perk }
    if = { limit = { has_perk = promising_prospects_perk } remove_perk = promising_prospects_perk }
    if = { limit = { has_perk = sappers_perk } remove_perk = sappers_perk }
    if = { limit = { has_perk = serve_the_crown_perk } remove_perk = serve_the_crown_perk }
    if = { limit = { has_perk = soldiers_of_lesser_fortune_perk } remove_perk = soldiers_of_lesser_fortune_perk }
    if = { limit = { has_perk = stalwart_leader_perk } remove_perk = stalwart_leader_perk }
    if = { limit = { has_perk = strategist_perk } remove_perk = strategist_perk }
    if = { limit = { has_perk = strict_organization_perk } remove_perk = strict_organization_perk }
    remove_trait = gallant
    remove_trait = overseer
    remove_trait = strategist
    remove_character_modifier = no_lifestyle_martial
}

DI_lifestyle_stewardship_present_effect = {
    if = { limit = { NOT = { has_perk = administrator_perk } } add_perk = administrator_perk }
    if = { limit = { NOT = { has_perk = architect_perk } } add_perk = architect_perk }
    if = { limit = { NOT = { has_perk = at_any_cost_perk } } add_perk = at_any_cost_perk }
    if = { limit = { NOT = { has_perk = avaricious_perk } } add_perk = avaricious_perk }
    if = { limit = { NOT = { has_perk = centralization_perk } } add_perk = centralization_perk }
    if = { limit = { NOT = { has_perk = chains_of_loyalty_perk } } add_perk = chains_of_loyalty_perk }
    if = { limit = { NOT = { has_perk = cutting_corners_perk } } add_perk = cutting_corners_perk }
    if = { limit = { NOT = { has_perk = defensive_measures_perk } } add_perk = defensive_measures_perk }
    if = { limit = { NOT = { has_perk = detailed_ledgers_perk } } add_perk = detailed_ledgers_perk }
    if = { limit = { NOT = { has_perk = divided_attention_perk } } add_perk = divided_attention_perk }
    if = { limit = { NOT = { has_perk = fearful_troops_perk } } add_perk = fearful_troops_perk }
    if = { limit = { NOT = { has_perk = golden_aplomb_perk } } add_perk = golden_aplomb_perk }
    if = { limit = { NOT = { has_perk = golden_obligations_perk } } add_perk = golden_obligations_perk }
    if = { limit = { NOT = { has_perk = heregeld_perk } } add_perk = heregeld_perk }
    if = { limit = { NOT = { has_perk = honored_to_serve_perk } } add_perk = honored_to_serve_perk }
    if = { limit = { NOT = { has_perk = it_is_my_domain_perk } } add_perk = it_is_my_domain_perk }
    if = { limit = { NOT = { has_perk = large_levies_perk } } add_perk = large_levies_perk }
    if = { limit = { NOT = { has_perk = likable_perk } } add_perk = likable_perk }
    if = { limit = { NOT = { has_perk = meritocracy_perk } } add_perk = meritocracy_perk }
    if = { limit = { NOT = { has_perk = organized_muster_rolls_perk } } add_perk = organized_muster_rolls_perk }
    if = { limit = { NOT = { has_perk = popular_figurehead_perk } } add_perk = popular_figurehead_perk }
    if = { limit = { NOT = { has_perk = positions_of_power_perk } } add_perk = positions_of_power_perk }
    if = { limit = { NOT = { has_perk = professional_workforce_perk } } add_perk = professional_workforce_perk }
    if = { limit = { NOT = { has_perk = soon_forgiven_perk } } add_perk = soon_forgiven_perk }
    if = { limit = { NOT = { has_perk = tax_man_perk } } add_perk = tax_man_perk }
    if = { limit = { NOT = { has_perk = toe_the_line_perk } } add_perk = toe_the_line_perk }
    if = { limit = { NOT = { has_perk = war_profiteer_perk } } add_perk = war_profiteer_perk }
    add_character_modifier = {
        modifier = no_lifestyle_stewardship
        days = -1
    }
}

DI_lifestyle_stewardship_present_no_effect = {
    if = { limit = { has_perk = administrator_perk } remove_perk = administrator_perk }
    if = { limit = { has_perk = architect_perk } remove_perk = architect_perk }
    if = { limit = { has_perk = at_any_cost_perk } remove_perk = at_any_cost_perk }
    if = { limit = { has_perk = avaricious_perk } remove_perk = avaricious_perk }
    if = { limit = { has_perk = centralization_perk } remove_perk = centralization_perk }
    if = { limit = { has_perk = chains_of_loyalty_perk } remove_perk = chains_of_loyalty_perk }
    if = { limit = { has_perk = cutting_corners_perk } remove_perk = cutting_corners_perk }
    if = { limit = { has_perk = defensive_measures_perk } remove_perk = defensive_measures_perk }
    if = { limit = { has_perk = detailed_ledgers_perk } remove_perk = detailed_ledgers_perk }
    if = { limit = { has_perk = divided_attention_perk } remove_perk = divided_attention_perk }
    if = { limit = { has_perk = fearful_troops_perk } remove_perk = fearful_troops_perk }
    if = { limit = { has_perk = golden_aplomb_perk } remove_perk = golden_aplomb_perk }
    if = { limit = { has_perk = golden_obligations_perk } remove_perk = golden_obligations_perk }
    if = { limit = { has_perk = heregeld_perk } remove_perk = heregeld_perk }
    if = { limit = { has_perk = honored_to_serve_perk } remove_perk = honored_to_serve_perk }
    if = { limit = { has_perk = it_is_my_domain_perk } remove_perk = it_is_my_domain_perk }
    if = { limit = { has_perk = large_levies_perk } remove_perk = large_levies_perk }
    if = { limit = { has_perk = likable_perk } remove_perk = likable_perk }
    if = { limit = { has_perk = meritocracy_perk } remove_perk = meritocracy_perk }
    if = { limit = { has_perk = organized_muster_rolls_perk } remove_perk = organized_muster_rolls_perk }
    if = { limit = { has_perk = popular_figurehead_perk } remove_perk = popular_figurehead_perk }
    if = { limit = { has_perk = positions_of_power_perk } remove_perk = positions_of_power_perk }
    if = { limit = { has_perk = professional_workforce_perk } remove_perk = professional_workforce_perk }
    if = { limit = { has_perk = soon_forgiven_perk } remove_perk = soon_forgiven_perk }
    if = { limit = { has_perk = tax_man_perk } remove_perk = tax_man_perk }
    if = { limit = { has_perk = toe_the_line_perk } remove_perk = toe_the_line_perk }
    if = { limit = { has_perk = war_profiteer_perk } remove_perk = war_profiteer_perk }
    remove_trait = administrator
    remove_trait = architect
    remove_trait = avaricious
    remove_character_modifier = no_lifestyle_stewardship
}

DI_lifestyle_wanderer_present_effect = {
    if = { limit = { NOT = { has_perk = been_there_done_that_perk } } add_perk = been_there_done_that_perk }
    if = { limit = { NOT = { has_perk = far_and_wide_perk } } add_perk = far_and_wide_perk }
    if = { limit = { NOT = { has_perk = finally_there_perk } } add_perk = finally_there_perk }
    if = { limit = { NOT = { has_perk = gracious_host_impeccable_guest_perk } } add_perk = gracious_host_impeccable_guest_perk }
    if = { limit = { NOT = { has_perk = journey_perk } } add_perk = journey_perk }
    if = { limit = { NOT = { has_perk = journey_planner_perk } } add_perk = journey_planner_perk }
    if = { limit = { NOT = { has_perk = just_one_more_hill_perk } } add_perk = just_one_more_hill_perk }
    if = { limit = { NOT = { has_perk = know_your_land_know_your_people_perk } } add_perk = know_your_land_know_your_people_perk }
    if = { limit = { NOT = { has_perk = local_arbitration_perk } } add_perk = local_arbitration_perk }
    if = { limit = { NOT = { has_perk = local_hero_perk } } add_perk = local_hero_perk }
    if = { limit = { NOT = { has_perk = local_inspection_perk } } add_perk = local_inspection_perk }
    if = { limit = { NOT = { has_perk = mercenary_contacts_perk } } add_perk = mercenary_contacts_perk }
    if = { limit = { NOT = { has_perk = mustering_the_troops_perk } } add_perk = mustering_the_troops_perk }
    if = { limit = { NOT = { has_perk = no_stone_unturned_perk } } add_perk = no_stone_unturned_perk }
    if = { limit = { NOT = { has_perk = of_the_people_perk } } add_perk = of_the_people_perk }
    if = { limit = { NOT = { has_perk = personal_touch_perk } } add_perk = personal_touch_perk }
    if = { limit = { NOT = { has_perk = power_at_home_perk } } add_perk = power_at_home_perk }
    if = { limit = { NOT = { has_perk = realm_charts_perk } } add_perk = realm_charts_perk }
    if = { limit = { NOT = { has_perk = roaming_perk } } add_perk = roaming_perk }
    if = { limit = { NOT = { has_perk = souvenirs_aplenty_perk } } add_perk = souvenirs_aplenty_perk }
    if = { limit = { NOT = { has_perk = surveyor_perk } } add_perk = surveyor_perk }
    if = { limit = { NOT = { has_perk = the_home_away_from_home_perk } } add_perk = the_home_away_from_home_perk }
    if = { limit = { NOT = { has_perk = travel_companion_perk } } add_perk = travel_companion_perk }
    if = { limit = { NOT = { has_perk = travel_logs_perk } } add_perk = travel_logs_perk }
    if = { limit = { NOT = { has_perk = voyager_perk } } add_perk = voyager_perk }
    if = { limit = { NOT = { has_perk = wayfarer_perk } } add_perk = wayfarer_perk }
    if = { limit = { NOT = { has_perk = well_prepared_perk } } add_perk = well_prepared_perk }
    add_character_modifier = {
        modifier = no_lifestyle_wanderer
        days = -1
    }
}

DI_lifestyle_wanderer_present_no_effect = {
    if = { limit = { has_perk = been_there_done_that_perk } remove_perk = been_there_done_that_perk }
    if = { limit = { has_perk = far_and_wide_perk } remove_perk = far_and_wide_perk }
    if = { limit = { has_perk = finally_there_perk } remove_perk = finally_there_perk }
    if = { limit = { has_perk = gracious_host_impeccable_guest_perk } remove_perk = gracious_host_impeccable_guest_perk }
    if = { limit = { has_perk = journey_perk } remove_perk = journey_perk }
    if = { limit = { has_perk = journey_planner_perk } remove_perk = journey_planner_perk }
    if = { limit = { has_perk = just_one_more_hill_perk } remove_perk = just_one_more_hill_perk }
    if = { limit = { has_perk = know_your_land_know_your_people_perk } remove_perk = know_your_land_know_your_people_perk }
    if = { limit = { has_perk = local_arbitration_perk } remove_perk = local_arbitration_perk }
    if = { limit = { has_perk = local_hero_perk } remove_perk = local_hero_perk }
    if = { limit = { has_perk = local_inspection_perk } remove_perk = local_inspection_perk }
    if = { limit = { has_perk = mercenary_contacts_perk } remove_perk = mercenary_contacts_perk }
    if = { limit = { has_perk = mustering_the_troops_perk } remove_perk = mustering_the_troops_perk }
    if = { limit = { has_perk = no_stone_unturned_perk } remove_perk = no_stone_unturned_perk }
    if = { limit = { has_perk = of_the_people_perk } remove_perk = of_the_people_perk }
    if = { limit = { has_perk = personal_touch_perk } remove_perk = personal_touch_perk }
    if = { limit = { has_perk = power_at_home_perk } remove_perk = power_at_home_perk }
    if = { limit = { has_perk = realm_charts_perk } remove_perk = realm_charts_perk }
    if = { limit = { has_perk = roaming_perk } remove_perk = roaming_perk }
    if = { limit = { has_perk = souvenirs_aplenty_perk } remove_perk = souvenirs_aplenty_perk }
    if = { limit = { has_perk = surveyor_perk } remove_perk = surveyor_perk }
    if = { limit = { has_perk = the_home_away_from_home_perk } remove_perk = the_home_away_from_home_perk }
    if = { limit = { has_perk = travel_companion_perk } remove_perk = travel_companion_perk }
    if = { limit = { has_perk = travel_logs_perk } remove_perk = travel_logs_perk }
    if = { limit = { has_perk = voyager_perk } remove_perk = voyager_perk }
    if = { limit = { has_perk = wayfarer_perk } remove_perk = wayfarer_perk }
    if = { limit = { has_perk = well_prepared_perk } remove_perk = well_prepared_perk }
    remove_trait = lifestyle_surveyor
    remove_trait = lifestyle_traveler
    remove_trait = lifestyle_voyager
    remove_trait = lifestyle_wayfarer
    remove_character_modifier = no_lifestyle_wanderer
}
