﻿change_government_feudal = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }

    title = change_govt_feudal
    desc = change_govt_desc
    selection_tooltip = change_govt_tt
    confirm_text = CONFIRM_OKAY

    is_shown = {
	    NOT = { has_government = feudal_government }
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = govt_menu
    }

    effect = {
		change_government = feudal_government
    }
	ai_check_interval = 0

    ai_will_do = 0
}

change_government_clan = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }

    title = change_govt_clan
    desc = change_govt_desc
    selection_tooltip = change_govt_tt
    confirm_text = CONFIRM_OKAY

    is_shown = {
	    NOT = { has_government = clan_government }
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = govt_menu
    }

    effect = {
		change_government = clan_government
    }
	ai_check_interval = 0

    ai_will_do = 0
}

change_government_tribal = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }

    title = change_govt_tribe
    desc = change_govt_desc
    selection_tooltip = change_govt_tt
    confirm_text = CONFIRM_OKAY

    is_shown = {
	    NOT = { has_government = tribal_government }
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = govt_menu
    }

    effect = {
		change_government = tribal_government
    }
	ai_check_interval = 0

    ai_will_do = 0
}

change_succession_single = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }

    title = change_suc_old
    desc = change_suc_desc
    selection_tooltip = change_suc_tt
    confirm_text = CONFIRM_OKAY

    is_shown = {
	    NOR = {
			has_government = theocracy_government
			has_government = republic_government
			has_government = mercenary_government
			has_government = tribal_government
			has_government = clan_government
		}
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = govt_menu
    }

    effect = {
		add_realm_law_skip_effects = single_heir_succession_law
		root.culture = {
			add_innovation = innovation_primogeniture
		}
    }
	ai_check_interval = 0

    ai_will_do = 0
}

change_succession_single_youngest = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }

    title = change_suc_young
    desc = change_suc_desc
    selection_tooltip = change_suc_tt
    confirm_text = CONFIRM_OKAY

    is_shown = {
	    NOR = {
			has_government = theocracy_government
			has_government = republic_government
			has_government = mercenary_government
			has_government = tribal_government
			has_government = clan_government
		}
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = govt_menu
    }

    effect = {
		add_realm_law_skip_effects = single_heir_succession_law_youngest
		root.culture = {
			add_innovation = innovation_primogeniture
		}
    }
	ai_check_interval = 0

    ai_will_do = 0
}

army_spawner_1 = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Spawn 1000 Troops"
    desc = army_spawner_1_desc
    selection_tooltip = army_spawner_1_tooltip
    confirm_text = army_spawner_1_ct

	is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = army_spawn_menu
	}

	effect = {
		spawn_army = {
			levies = 1000
			location = root.capital_province
			inheritable = yes
			uses_supply = no
			name = b_army_spawner_name
		}
	}
    ai_will_do = 0
	ai_check_interval = 0
}

army_spawner_2 = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Spawn 10000 Troops"
    desc = army_spawner_2_desc
    selection_tooltip = army_spawner_2_tooltip
    confirm_text = army_spawner_2_ct

	is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = army_spawn_menu
	}

	effect = {
		spawn_army = {
			levies = 10000
			location = root.capital_province
			inheritable = yes
			uses_supply = no
			name = b_army_spawner_name
		}
	}
    ai_will_do = 0
	ai_check_interval = 0
}

army_spawner_3 = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Spawn 100000 Troops"
    desc = army_spawner_3_desc
    selection_tooltip = army_spawner_3_tooltip
    confirm_text = army_spawner_3_ct

	is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = army_spawn_menu
	}

	effect = {
		spawn_army = {
			levies = 100000
			location = root.capital_province
			inheritable = yes
			uses_supply = no
			name = b_army_spawner_name
		}
	}
    ai_will_do = 0
	ai_check_interval = 0
}

using_the_new_system = {
	picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Use The New System"
    desc = use_new_system_desc
    selection_tooltip = use_new_system_tooltip
    confirm_text = "CONFIRM_OKAY"

	is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = army_spawn_menu
	}

	effect = {
		save_scope_as = char_editor
		add_character_flag = levy_size_flag
		add_character_flag = last_event_60
		add_character_flag = modifier_pg_1
		trigger_event = dp_char_editor.999
	}

	ai_check_interval = 0
}

convert_religion = {
	picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Convert Realm To Religion"
    desc = convert_realm_desc
    selection_tooltip = are_you_sure_tt
    confirm_text = "CONFIRM_OKAY"
	is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = govt_menu
	}

	effect = {
        every_realm_county = {
            limit = { NOT = { faith = root.faith } }
			set_county_faith = root.faith
        }
		every_sub_realm_county = {
			limit = { NOT = { faith = root.faith } }
			set_county_faith = root.faith
		}
		every_vassal_or_below = {
			limit = { NOT = { faith = root.faith } }
			set_character_faith_with_conversion = root.faith
		}
	}

    ai_will_do = 0
	ai_check_interval = 0
}

convert_culture = {
	picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Convert Realm To Culture"
	desc = convert_realm_desc
	selection_tooltip = are_you_sure_tt
	confirm_text = "CONFIRM_OKAY"

	is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = govt_menu
	}

	effect = {
        every_realm_county = {
			limit = { NOT = { culture = root.culture } }
			set_county_culture = root.culture
		}
		every_sub_realm_county = {
			limit = { NOT = { culture = root.culture } }
			set_county_culture = root.culture
		}
		every_vassal_or_below = {
			limit = { NOT = { culture = root.culture } }
			set_culture = root.culture
		}
	}
    ai_will_do = 0
	ai_check_interval = 0
}

max_all_buildings_sub_realm = {
	picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Max All Buildings In Realm"
    desc = "Sets All Buildings To Max"
    selection_tooltip = are_you_sure_tt
    confirm_text = "CONFIRM_OKAY"

	is_shown = {
		#is_ai = no
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = govt_menu
	}

	effect = {
		every_sub_realm_county = {
			every_county_province  = {
				maxout_realm_buildings_effect = yes
			}
		}
		if = {
			every_sub_realm_county = {
				every_county_province  = {
					limit = {
						has_building = tribe_01				
					}				
					add_building = tribe_02
				}
			}
		}				
		if = {					
			every_sub_realm_county = {				
				every_county_province  = {			
					limit = {		
						OR = {	
							has_building = alhambra_01
						}	
					}		
					add_building = alhambra_02		
				}			
			}				
		}					
		if = {					
			every_sub_realm_county = {				
				every_county_province  = {			
					limit = {		
						OR = {	
							has_building = citadel_of_aleppo_01
						}	
					}		
					add_building = citadel_of_aleppo_02		
				}			
			}				
		}					
		if = {					
			every_sub_realm_county = {				
				every_county_province  = {			
					limit = {		
						OR = {	
							has_building = hagia_sophia_01
						}	
					}		
					add_building = hagia_sophia_02		
				}			
			}				
		}
		if = {		
			every_sub_realm_county = {				
				every_county_province  = {			
					limit = {		
						OR = {	
							has_building = longhouses_01
						}	
					}		
					add_building = longhouses_02		
				}			
			}				
		}					
		if = {					
			every_sub_realm_county = {				
				every_county_province  = {			
					limit = {		
						OR = {	
							has_building = war_camps_01
						}	
					}		
					add_building = war_camps_02		
				}			
			}				
		}					
		if = {					
			every_sub_realm_county = {				
				every_county_province  = {			
					limit = {		
						OR = {	
							has_building = palisades_01
						}	
					}		
					add_building = palisades_02		
				}			
			}				
		}					
		if = {					
			every_sub_realm_county = {				
				every_county_province  = {			
					limit = {		
						OR = {	
							has_building = market_villages_01
						}	
					}		
					add_building = market_villages_02		
				}			
			}				
		}				
		if = {					
			every_sub_realm_county = {				
				every_county_province  = {			
					limit = {		
						OR = {	
							has_building = hall_of_heroes_01
							has_building = hall_of_heroes_02
							has_building = hall_of_heroes_03
							has_building = hall_of_heroes_04
						}	
					}		
					add_building = hall_of_heroes_05		
				}			
			}				
		}		
	}
	ai_will_do = 0
	ai_check_interval = 0
}

max_all_buildings_estate = {
	picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Max All Buildings In Domicile"
    desc = "Sets All Buildings in your Camp/Estate To Max"
    selection_tooltip = are_you_sure_tt
    confirm_text = "CONFIRM_OKAY"

	is_shown = {
		#is_ai = no
		domicile = { exists = yes }
		#always = no
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = govt_menu
	}

	effect = {
		domicile = {
			if = { 
				limit = {
					is_domicile_type = camp
				}
				maxout_camp_buildings_effect = yes
			}
			else_if = { 
				limit = {
					is_domicile_type = estate
				}
				maxout_estate_buildings_effect = yes
			}
		}
	}
	ai_will_do = 0
	ai_check_interval = 0
}

martial_perk_point_1 = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Add 1 Martial Lifestyle Point"
    desc = martial_perk_point_1_desc
	selection_tooltip = are_you_sure_tt
	confirm_text = "CONFIRM_OKAY"

    is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = stats_menu
    }

    effect = {
		add_martial_lifestyle_perk_points = 1
    }
    ai_check_interval = 0
    ai_will_do = 0
}

diplo_perk_point_1 = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Add 1 Diplomacy Lifestyle Point"
    desc = diplo_perk_point_1_desc
	selection_tooltip = are_you_sure_tt
	confirm_text = "CONFIRM_OKAY"

    is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = stats_menu
    }

    effect = {
		add_diplomacy_lifestyle_perk_points = 1
    }
    ai_check_interval = 0
    ai_will_do = 0
}

steward_perk_point_1 = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
	title = "Add 1 Steward Lifestyle Point"
    desc = steward_perk_point_1_desc
	selection_tooltip = are_you_sure_tt
	confirm_text = "CONFIRM_OKAY"

    is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = stats_menu
    }

    effect = {
		add_stewardship_lifestyle_perk_points = 1
    }
    ai_check_interval = 0
    ai_will_do = 0
}

intrigue_perk_point_1 = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
    title = "Add 1 Intrigue Lifestyle Point"
    desc = intrigue_perk_point_1_desc
	selection_tooltip = are_you_sure_tt
	confirm_text = "CONFIRM_OKAY"

    is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = stats_menu
    }

    effect = {
		add_intrigue_lifestyle_perk_points = 1
    }
    ai_check_interval = 0
    ai_will_do = 0
}

learning_perk_point_1 = {
    picture = { reference = "gfx/interface/illustrations/decisions/cheat_tab.dds" }
    title = "Add 1 Learning Lifestyle Point"
    desc = learning_perk_point_1_desc
	selection_tooltip = are_you_sure_tt
	confirm_text = "CONFIRM_OKAY"

    is_shown = {
		has_character_flag = daddy_pika_cheat_menu
		has_character_flag = stats_menu
    }

    effect = {
		add_learning_lifestyle_perk_points = 1
    }
    ai_check_interval = 0
    ai_will_do = 0
}