decision_mod_planetmega = {
	owned_planets_only = yes
	icon = decision_build_planetmega

	resources = { category = decisions }

	potential = {
		not = { uses_district_set = cosmogenesis_world }
		owner = {
			or = {
				is_enabled_building_planetmega = yes
				is_enabled_recovering_planetmega = yes
			}
		}
	}

	effect = {
		#custom_tooltip = decision_remove_planetmega_effects
		carrier_event = { id = planetmega_mod.1 }
	}

	ai_weight = {
		weight = 0
	}
}

decision_plnmg_reshaper_effect = {
	icon = decision_arcology_project #temp
	owned_planets_only = yes
	ai_weight = { weight = 0 }
	potential = { has_active_building = building_planetmega_reshaper }
	enactment_time = 90
	effect = {
		custom_tooltip = fake_plnmg_max_district_add
		hidden_effect = {
			initialize_mys_variable = { VAR = plnmg_reshaper_times }
			change_variable = { which = plnmg_reshaper_times value = 1 }
		}
	}
	resources = {
		category = planet_districts
		cost = {
			minerals = 1250
			energy = @b5_minerals
		}
		cost = {
			trigger = { is_variable_set = plnmg_reshaper_times }
			minerals = 1250
			energy = @b5_minerals
			mult = plnmg_reshaper_times
			#mult = value:sv_get_plnmg_reshaper_cost_add
		}
	}
}

decision_origin_planetmega_builder_init = {
	owned_planets_only = yes
	icon = decision_arcology_project
	potential = { has_modifier = origin_planetmega_builder_init_modifier }
	effect = { remove_modifier = origin_planetmega_builder_init_modifier }
	enactment_time = 240
	resources = {
		category = planet_buildings
		cost = { minerals = @b2_minerals }
	}
	ai_weight = { weight = 100 }
}

### test ###

# decision_plnmg_test = {
# 	owned_planets_only = yes
# 	icon = decision_arcology_project
# 	potential = {
# 		# this = carrier (planet/ship), from is country, all scopes in decisions is like this
# 	}
# 	effect = { add_deposit = d_great_laboratory }
# 	ai_weight = { weight = 0 }
# }

### 备用：
#decision_arcology_project
#decision_arcology_project_relic
#基础2000合金，5000矿
#120个月，每月10合金，20矿
#decision_shattered_ring_project
#decision_shattered_ring_project_interloper
#基础3500合金
#90个月，每月25合金
