#################
# U3. The Tally (genocidal empires)
# A count (country variable apb_tally, 0-100) that goes up by 1 per colony conquered,
# 1 per 1,000 pops purged and 10 per empire destroyed. Each point is one stack of the
# country modifier apb_the_tally. Trophies at 10, 25, 50 and 100.
# Logic: events/apb_the_tally_events.txt, common/scripted_effects/apb_the_tally_effects.txt
#################

ap_the_tally = {
	potential = {
		NOT = {
			has_ascension_perk = ap_the_tally
		}
		is_homicidal = yes
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
	}
	on_enabled = {
		custom_tooltip = apb_the_tally_tt
		hidden_effect = {
			if = {
				limit = {
					NOT = { is_variable_set = apb_tally }
				}
				set_variable = {
					which = apb_tally
					value = 0
				}
			}
		}
	}
	ai_weight = {
		factor = 3
	}
}
