﻿# Root: province
dlm_is_commissionable_landmark_site = {
	custom_tooltip = {
		text = dlm_landmark_project_no_active_special_building_tt
		OR = {
			has_special_building = no
			has_building = dlm_cleared_landmark_site_01
		}
	}
	custom_tooltip = {
		text = dlm_landmark_project_open_slot_or_recycled_tt
		OR = {
			has_special_building_slot = no
			has_variable = dlm_recycled_landmark_site
		}
	}
}

# Root: character
dlm_has_commissionable_landmark_county = {
	any_sub_realm_county = {
		holder = root
		title_province = {
			dlm_is_commissionable_landmark_site = yes
		}
	}
}

# Root: character
dlm_can_commission_ducal_landmark = {
	gold >= dlm_commission_base_gold_cost
	prestige >= dlm_commission_base_prestige_cost
	custom_tooltip = {
		text = dlm_commission_ducal_landmark_decision_cooldown_tt
		OR = {
			NOT = { has_variable = dlm_commission_ducal_landmark_lifetime }
			NOT = { has_character_modifier = dlm_recent_landmark_commission_cooldown }
		}
	}
	custom_tooltip = {
		text = dlm_commission_ducal_landmark_decision_selection_tooltip
		dlm_has_commissionable_landmark_county = yes
	}
}
