decisions = {
	
	levy_peloponnesian_slavic_soldiers = {
		only_playable = yes
		is_high_prio = yes
		is_mercenary = yes
		ai_check_interval = 12

		potential = {
			is_playable = yes
			is_landed = yes
			OR = {
				ai = no
				any_war = {
					OR = {
						any_defender = {
							character = ROOT
							is_primary_war_defender = yes
						}
						any_attacker = {
							character = ROOT
							is_primary_war_attacker = yes
						}
					}
				}
			}
			OR = {
				has_landed_title = c_korinthos
				has_landed_title = c_achaia
				has_landed_title = c_methone
				has_landed_title = c_monemvasia
				has_landed_title = c_arcadia #SWMH compatibility
			}
			NOR = {
				culture_group = south_slavic
				culture_group = east_slavic
				culture_group = west_slavic
				religion = slavic_pagan
				religion = slavic_pagan_reformed
			}
			war = yes
		}
		allow = {
			prestige = 50
			wealth = 50
			custom_tooltip = {
				text = VIET_peloponnesian_slavic_recent
				hidden_tooltip = {
					NOT = {
						has_character_modifier = VIET_peloponnesian_slavic_timer
					}
				}				
			}
		}
		effect = {
			prestige = -50
			wealth = -50
			hidden_tooltip = {
				character_event = { id = monogatari.156 }
				add_character_modifier = {
					name = VIET_peloponnesian_slavic_timer
					duration = 1825
					hidden = yes
				}
			}				
		}
		ai_will_do = {
			factor = 0 # decisions with the "is_mercenary" will not be calculated from the script
		}
	}	
	
	rebuild_hexamilion_wall = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 60
		
		potential = {
			is_playable = yes
			NOT = { has_global_flag = VIET_hexamilion_wall_rebuilt }
			has_landed_title = c_korinthos
		}
		allow = {
			higher_real_tier_than = COUNT
			wealth = 100
		}
		effect = {
			wealth = -100
			prestige = 100
			481 = {
				add_province_modifier = {
					name = VIET_hexamilion_wall
					duration = -1
				}
				add_province_modifier = {
					name = VIET_recently_built_hexamilion_wall
					duration = 730
				}
			}
			set_global_flag = VIET_hexamilion_wall_rebuilt
		}
		ai_will_do = {
			factor = 0.01
			modifier = {
				factor = 10
				year = 1300
			}
		}
	}
	
	restore_fountain_of_peirene = {
		only_playable = yes
		#is_high_prio = yes
		ai_check_interval = 60
		
		potential = {
			is_playable = yes
			NOT = { has_global_flag = VIET_peirene_fountain_restored }
			has_landed_title = c_korinthos
			OR = {
				religion = hellenic_pagan
				religion = hellenic_pagan_reformed
				religion = titan_pagan		# ACR compatibility
				religion = promethean_pagan	# ACR compatibility
			}
		}
		allow = {
			481 = {
				OR = {
					religion = hellenic_pagan
					religion = hellenic_pagan_reformed
					religion = titan_pagan		# ACR compatibility
					religion = promethean_pagan	# ACR compatibility
				}
			}
			wealth = 50
		}
		effect = {
			wealth = -50
			hidden_tooltip = {
				narrative_event = { id = monogatari.155 }
				set_global_flag = VIET_peirene_fountain_restored
			}
		}
		ai_will_do = {
			factor = 1
		}
	}	

	hold_hyacinthia_festival = {
		only_playable = yes
		ai_check_interval = 100
		potential = {
			is_playable = yes
			is_adult = yes
			prisoner = no
			NOT = {	has_character_flag = flag_holding_great_tribal_festival }
			OR = {
				religion = hellenic_pagan
				religion = hellenic_pagan_reformed
				religion = titan_pagan		# ACR compatibility
				religion = promethean_pagan	# ACR compatibility
			}
			OR = {
				has_landed_title = c_korinthos
				has_landed_title = c_achaia
				has_landed_title = c_methone
				has_landed_title = c_monemvasia
				has_landed_title = c_arcadia #SWMH compatibility
			}
		}
		allow = {
			war = no
			prisoner = no
			NOT = { trait = incapable }
			NOT = { is_inaccessible_trigger = yes }
			custom_tooltip = {
				text = is_not_busy_trigger_tooltip
				hidden_tooltip = { NOT = { has_character_flag = do_not_disturb } }
			}
			wealth = 25
			month = 4
			NOT = { month = 8 }
			custom_tooltip = {
				text = VIET_hyacinthia_recent_text
				NOT = { has_character_modifier = held_hyacinthia_festival_cooldown }
			}
		}
		effect = {
			wealth = -25
			set_character_flag = VIET_holding_hyacinthia_festival
			set_character_flag = do_not_disturb
			hidden_tooltip = {
				character_event = { id = monogatari.160 }
			}
		}
		ai_will_do = {
			factor = 1
			
			modifier = {
				factor = 0.01
				NOT = {
					wealth = 100
				}
			}
			modifier = {
				factor = 0.5
				trait = shy
			}
			modifier = {
				factor = 2
				trait = gregarious
			}
			modifier = {
				factor = 0.5
				trait = cynical
			}
			modifier = {
				factor = 2
				trait = zealous
			}
		}
	}	
	
}