namespace = easycheats_main_spawn

easycheats_main_spawn.1 = { # Spawn
	type = country_event
	title = "easycheats_main_spawn.1.title"
	desc = "easycheats_main_spawn.1.desc"
	
	left_portrait = root.current_ruler
	
	picture = easycheats_main_bg

    immediate = {       
        random_owned_province = {
            limit = {
                is_port = yes
            }
            random_neighbor_province = {
                limit = {                    
					is_sea = yes
                }
                save_scope_as = easycheats_port_sea
            }
        }
    }

	option = {
		name = "easycheats_exit"

		ai_chance = { 
            factor = 100
        }
	}
    
	option = {
		name = "easycheats_back_to_common"

        trigger_event = {
            id = easycheats_main.3
        }

		ai_chance = { 
            factor = 0 
        }
    }

    option = {
        name = "10x Light Infantry"        
	
        create_unit = {
            location = capital_scope
            while = {
                count = 10
                add_subunit = light_infantry
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}
	
	option = {
        name = "10x Archers"        
		
        create_unit = {
            location = capital_scope
            #random_sub_unit = {
            #    destroy_subunit = yes
            #}
            while = {
                count = 10
                add_subunit = archers
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}
	
	option = {
        name = "10x Heavy Infantry"
        
        create_unit = {
            location = capital_scope
            while = {
                count = 10
                add_subunit = heavy_infantry
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}
	
	option = {
		name = "10x Light Cavalry"        
       
        create_unit = {
            location = capital_scope
            while = {
                count = 10
                add_subunit = light_cavalry
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}
	
	option = {
        name = "10x Heavy Cavalry"
                    
        create_unit = {
            location = capital_scope
            while = {
                count = 10
                add_subunit = heavy_cavalry
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}
	
	option = {
        name = "10x Horse Archers"
        
        create_unit = {
            location = capital_scope
            while = {
                count = 10
                add_subunit = horse_archers
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}
	
	option = {
		name = "10x Camels"
       
        create_unit = {
            location = capital_scope
            while = {
                count = 10
                add_subunit = camels
            }
        }

        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}
	
	option = {
		name = "10x War Elephants"        
        
        create_unit = {
            location = capital_scope
            while = {
                count = 10
                add_subunit = warelephant
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}
	
	option = {
		name = "10x Chariots"
        
        create_unit = {
            location = capital_scope
            while = {
                count = 10
                add_subunit = chariots
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}

    option = {
		name = "10x Liburnian"

        create_unit = {
            location = scope:easycheats_port_sea
            navy = yes
            while = {
                count = 10
                add_subunit = liburnian
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}

    option = {
		name = "10x Trireme"
        
        create_unit = {
            location = scope:easycheats_port_sea
            navy = yes
            while = {
                count = 10
                add_subunit = trireme
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}

    option = {
		name = "10x Tetrere"
        
        create_unit = {
            location = scope:easycheats_port_sea
            navy = yes
            while = {
                count = 10
                add_subunit = tetrere
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}

    option = {
		name = "10x Hexere"
        
        create_unit = {
            location = scope:easycheats_port_sea
            navy = yes
            while = {
                count = 10
                add_subunit = hexere
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}

    option = {
		name = "10x Octere"
        
        create_unit = {
            location = scope:easycheats_port_sea
            navy = yes
            while = {
                count = 10
                add_subunit = octere
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}

    option = {
		name = "10x Mega Galley"
        
        create_unit = {
            location = scope:easycheats_port_sea
            navy = yes
            while = {
                count = 10
                add_subunit = mega_galley
            }
        }
        
        trigger_event = {
            id = easycheats_main_spawn.1
        }

		ai_chance = { 
            factor = 0 
        }
	}
}