﻿# TAX RIVALRY EFFECTS

# NOTE: This effect needs var:story_steward and var:tax_collector to be set
create_tax_rivalry_story_effect = {
	if = {
		limit = {
			is_ai = no # Don't care about AI enough to trigger this cycle for them
			government_has_flag = government_is_clan
			exists = house
			exists = var:story_steward
			exists = var:story_tax_collector
		}
		create_story = story_cycle_tax_rivalry
	}
	else = {
		clean_up_tax_rivalry_story_variables_effect = yes
	}
}

# Clears these redundant variables if the tax rivalry story cycle isn't ongoing
clean_up_tax_rivalry_story_variables_effect = {
	if = {
		limit = {
			NOT = { any_owned_story = { type = story_cycle_tax_rivalry } }
		}
		remove_variable = story_steward
		remove_variable = story_tax_collector
	}
}
