﻿patron_effect = {
    if = {
        limit = {
                NOT = {
                    has_trait = lifestyle_patron
                }
            is_alive = yes
        }
        patron_set_up_effects = yes
    }
    else_if = {
        limit = {
            has_trait = lifestyle_patron
            has_trait_xp = {
                trait = lifestyle_patron
                value < 100
            }
            is_alive = yes
        }
        patron_xp_effects = yes
    }
}

patron_set_up_effects = {
    add_trait = lifestyle_patron
}



patron_xp_effects = {
		if = {
			limit = {
				is_ai = yes
			}
		add_trait_xp = {
		trait = lifestyle_patron
		value = {
		integer_range = {
		min = 14
		max = 24
		}
        }
    }
    }
	if = {
		limit = {
			is_ai = no
		}
		add_trait_xp = {
		trait = lifestyle_patron
		value = {
		integer_range = {
		min = 5
		max = 10
		}
        }
    	}
	}
    send_interface_message = {
        type = event_generic_good_with_text
        title = trait_improved_patron
        desc = trait_improved_patron_desc
    }
}
