@distance = 50
@base_moon_distance = 10

### Ideal_Township_World
ideal_township_system_initializer = {				#ڲ
        name = "Ringworld"					#
        
        class = "sc_g"						#
        asteroids_distance = 125				#СǾ
        flags = { Ideal_Township_system }			#ʶ
        
        usage = custom_empire					#ѡ
        
        planet = {
                name = "Eden"					#
                class = "pc_b_star"				#ͺǣ
                orbit_distance = 0				#ľ
                orbit_angle = 1					#ĽǶ
                size = 50					#С
                has_ring = yes					#ǻ
        }
        
        planet = {
                name = "Earth"					#
                class = "pc_continental"			#½
                orbit_distance = 50
                orbit_angle = 360
                size = 50					#õҲʾϵеĴСйأĿǰ25õ
                starting_planet = yes				#Ƿʼǣôinitһϵֻһʼ
                has_ring = no
                entity = "continental_planet_earth_entity"	#ʬ
                tile_blockers = none				#ظ谭
                modifiers = none				#η
                
                init_effect = {
                        prevent_anomaly = yes			#ֹ쳣
                }
                
                init_effect = {
                        random_tile = {									#ʼԴ
                                limit = { has_blocker = no has_building = no num_adjacent_tiles > 3 }	#
                                set_building = "building_capital_1"					#ý
                                add_resource = {
                                        resource = food							#Դ
                                        amount = 10							#Դ
                                        replace = yes							#ȡԭԴ
                                }        
                                add_resource = {
                                        resource = minerals
                                        amount = 10
                                }                                        
                                random_neighboring_tile = {
                                        limit = { has_blocker = no has_building = no }
                                        set_building = "building_hydroponics_farm_1"			#ˮ
                                        add_resource = {
                                                resource = food						#ʳ
                                                amount = 10
                                                replace = yes
                                        }                                                
                                }
                                random_neighboring_tile = {
                                        limit = { has_blocker = no has_building = no }
                                        set_building = "building_power_plant_1"				#
                                        add_resource = {
                                                resource = energy					#
                                                amount = 10
                                                replace = yes
                                        }                                                
                                }
                                random_neighboring_tile = {
                                        limit = { has_blocker = no has_building = no }
                                        set_building = "building_power_plant_1"
                                        add_resource = {
                                                resource = energy
                                                amount = 10
                                                replace = yes
                                        }                                                
                                }
                                random_neighboring_tile = {
                                        limit = { has_blocker = no has_building = no }
                                        set_building = "building_mining_network_1"			#
                                        add_resource = {
                                                resource = minerals					#Դ
                                                amount = 10
                                                replace = yes
                                        }                                                
                                }                                
                        }
                        random_tile = {
                                limit = { has_blocker = no has_building = no }
                                set_blocker = "tb_decrepit_dwellings"					#ƶ
                                add_resource = {
                                        resource = physics_research					#о
                                        amount = 10
                                        replace = yes
                                }           
                                add_resource = {
                                        resource = society_research					#о
                                        amount = 10
                                }                                          
                                add_resource = {
                                        resource = engineering_research					#о
                                        amount = 10
                                }                                          
                        }        
                        random_tile = {
                                limit = { has_blocker = no has_building = no }
                                set_blocker = "tb_decrepit_dwellings"
                                add_resource = {
                                        resource = physics_research
                                        amount = 10
                                        replace = yes
                                }           
                                add_resource = {
                                        resource = society_research
                                        amount = 10
                                }                                          
                                add_resource = {
                                        resource = engineering_research
                                        amount = 10
                                }                                          
                        }        
                        random_tile = {
                                limit = { has_blocker = no has_building = no }
                                set_blocker = "tb_failing_infrastructure"				#ҵ
                                add_resource = {
                                        resource = food
                                        amount = 10
                                        replace = yes
                                }           
                                add_resource = {
                                        resource = energy
                                        amount = 10
                                }                                          
                                add_resource = {
                                        resource = minerals
                                        amount = 10
                                }                                          
                        }       
                        random_tile = {
                                limit = { has_blocker = no has_building = no }
                                set_blocker = "tb_failing_infrastructure"
                                add_resource = {
                                        resource = food
                                        amount = 10
                                        replace = yes
                                }           
                                add_resource = {
                                        resource = energy
                                        amount = 10
                                }                                          
                                add_resource = {
                                        resource = minerals
                                        amount = 10
                                }                                           
                        }       
                }
                
                moon = {										#
                        name = "Luna"
                        class = "pc_continental"
                        size = 25
                        orbit_distance = 15
                        orbit_angle = 40
                        has_ring = no
                        entity = "continental_planet_earth_entity"
                }
        }
        
        planet = {
                name = "One"
                class = "pc_continental"
                orbit_distance = 60
                orbit_angle = 60
                size = 50
                has_ring = yes
                entity = "continental_planet_earth_entity"
		
		change_orbit = @base_moon_distance
		
		moon = {
			count = { min = 1 max = 5 }
			class = random
                        size = { min = 15 max = 15 }
			orbit_angle = { min = 90 max = 270 }
			orbit_distance = 5
		}
        }
        
        planet = {
                name = "Two"
                class = "pc_continental"
                orbit_distance = 70
                orbit_angle = 120
                size = 50
                has_ring = yes
                entity = "gas_giant_jupiter_entity"
		
		change_orbit = @base_moon_distance
		
		moon = {
			count = { min = 1 max = 5 }
			class = random
                        size = { min = 15 max = 15 }
			orbit_angle = { min = 90 max = 270 }
			orbit_distance = 5
		}
        }
        
        planet = {
                name = "Three"
                class = "pc_continental"
                orbit_distance = 80
                orbit_angle = 180
                size = 50
                has_ring = yes
                entity = "gas_giant_05_entity"
		
		change_orbit = @base_moon_distance
		
		moon = {
			count = { min = 1 max = 5 }
			class = random
                        size = { min = 15 max = 15 }
			orbit_angle = { min = 90 max = 270 }
			orbit_distance = 5
		}
        }
        
        planet = {
                name = "Four"
                class = "pc_continental"
                orbit_distance = 90
                orbit_angle = 30
                size = 50
                has_ring = yes
                entity = "gas_giant_03_entity"
		
		change_orbit = @base_moon_distance
		
		moon = {
			count = { min = 1 max = 5 }
			class = random
                        size = { min = 15 max = 15 }
			orbit_angle = { min = 90 max = 270 }
			orbit_distance = 5
		}
        }
        
        planet = {
                name = "Five"
                class = "pc_continental"
                orbit_distance = 100
                orbit_angle = 300
                size = 50
                has_ring = yes
                entity = "gas_giant_02_entity"
		
		change_orbit = @base_moon_distance
		
		moon = {
			count = { min = 1 max = 5 }
			class = random
                        size = { min = 15 max = 15 }
			orbit_angle = { min = 90 max = 270 }
			orbit_distance = 5
		}
        }


