#Divination

### Consult the Skies ###
mpo_divination_decision = {
    picture = {
        reference = "gfx/interface/illustrations/event_scenes/mpo_campfire_steppe.dds"
    }
	sort_order = 25
	decision_group_type = nomad_minor
	cooldown = { years = 5 }
	
	cost = {
		piety = medium_piety_value
	}
	
	is_shown = {
		has_mpo_dlc_trigger = yes
		government_has_flag = government_is_nomadic
		has_religion = religion:tengrism_religion
	}

	is_valid_showing_failures_only = {
		is_available_adult = yes
	}

	is_valid = {
		employs_court_position = court_astrologer_court_position
	}
	
    effect = {
    	if = {
    		limit = {
    			culture ?= { has_cultural_pillar = ethos_spiritual }
    		}
    		custom_tooltip = {
				text = mpo_divination_decision_tt_spiritual
				trigger_event = court_astrologer_events.0001
			}
    	}
    	else = {
    		custom_tooltip = {
				text = mpo_divination_decision_tt
				trigger_event = court_astrologer_events.0001
			}
    	}	
    }
	
	ai_check_interval_by_tier = {
		barony = 0
		county = 120
		duchy = 120
		kingdom = 60
		empire = 60
		hegemony = 60
	}
	
    ai_potential = {
        is_at_war = no
        ai_greed < medium_positive_ai_value
        short_term_gold > ai_war_chest_desired_gold_value
        war_chest_gold >= halved_ai_war_chest_gold_maximum
    }
	
    ai_will_do = {
        base = 100
    }
}
