#################
# U6. Pathfinders' Ledger
# Every system one of our ships enters for the first time (after taking the perk)
# is logged and gives a little unity. Milestones at 25/50/100/200/400 systems
# offer a choice of reward. Nomads: an arkship encamping in a system it has never
# camped in gives a 5-year harvest bonus.
# Logic: events/apb_pathfinders_ledger_events.txt
#################

ap_pathfinders_ledger = {
	potential = {
		NOT = {
			has_ascension_perk = ap_pathfinders_ledger
		}
	}
	possible = {
		custom_tooltip = {
			fail_text = "requires_ascension_perks_2"
			num_ascension_perks > 1
		}
	}
	on_enabled = {
		custom_tooltip = apb_pathfinders_ledger_tt
		if = {
			limit = { is_nomadic = yes }
			custom_tooltip = apb_pathfinders_ledger_nomad_tt
		}
		hidden_effect = {
			if = {
				limit = { NOT = { is_variable_set = apb_ledger_systems } }
				set_variable = { which = apb_ledger_systems value = 0 }
			}
		}
	}
	ai_weight = {
		factor = 2
	}
}
