# these should run before vanilla and most mods

on_game_start = {
	events = {
		painted_galaxy_dedlc.1 # reset custom-placed dlc system if missing required dlc
		painted_galaxy_extra_spawn.1 # delete empires that spawned in a system without spawn_weight
		painted_galaxy_fe.1 # spawn fallen empires
		painted_galaxy_ratling.1 # spawn missing ratling systems
		painted_galaxy_marauder.1 # spawn missing marauder systems
		painted_galaxy_precursor.1 # add precursor star flag near players
		painted_galaxy_guaranteed_colony.1 # spawn guaranteed colonies according to settings
		painted_galaxy_advanced_start.1 # create advanced starts (should happen after creating guaranteed colonies)
		painted_galaxy_msi.1 # spawn missing MSI systems (should happen after creating advanced starts)
		painted_galaxy_reserved_spawn.1 # remove reserved spawn traits
	}
}

# this happens before on_game_start
empire_init_capital_colony = {
	events = {
		painted_galaxy_homeworld.1 # correct home planets
	}
}

on_ruler_created = {
	events = {
		painted_galaxy_nomad.1 # give missing technologies (on_ruler_created fires early enough to prevent error)
	}
}
