﻿# This is essentially to remove the need to overwrite the remove_all_perk_lifestyle_traits_effect
# By adding a separate but similar effect to remove the new lifestyles traits
quarterly_playable_pulse = {
	on_actions = {
		## Lifestyles Events
		ALE_nht_prowess_lifestyle_progress_pulse
	}
}

ALE_nht_prowess_lifestyle_progress_pulse = { # Fires 4 times per year
	trigger = {
		NOT = { has_lifestyle = nht_prowess_lifestyle }
		is_landed = yes # Lifestyle events inherently assume you have one. Non-landed rulers shouldn't get lifestyle events, even if they still have a lifestyle.
		exists = capital_province # Because in rare situations landed AI rulers can end up without a capital.
		trigger_if = {
			limit = {
				is_ai = no
			}
			has_had_focus_for_days > 30
		}
		NOR = {
			#has_character_flag = had_recent_lifestyle_ongoing_event
			has_game_rule = nht_disable_lifestyle_events
			
			# Must not currently be in a prowess event chain.
			#has_character_flag = is_in_nht_prowess_offense_event
		}
	}

	first_valid_on_action = {
		nht_prowess_lifestyle_ongoing_events # General event pool
		nht_prowess_lifestyle_unavailable_events # Special event pool for unavailable characters (imprisoned, commanding an army, infirm, etc.)
	}
}