
# planetmega_financial_currency = {
# 	potential = {
# 		is_gestalt = no
# 		has_technology = tech_planetmega_financial
# 	}
#
# 	option = {
# 		name = planetmega_none
# 		ai_weight = { weight = 100 }
# 	}
#
# 	option = {
# 		name = plnmg_currency_easing
# 		on_enabled = {
# 			every_owned_colony = {
# 				limit = {
# 					or = {
# 						has_deposit = d_commercial_shikara
# 						has_deposit = d_plnmg_financial_shikara
# 					}
# 				}
# 				add_modifier = { modifier = planetmega_currency_easing }
# 			}
# 		}
# 		on_disabled = {
# 			every_owned_colony = {
# 				limit = { has_modifier = planetmega_currency_easing }
# 				remove_modifier = planetmega_currency_easing
# 			}
# 		}
#
# 		ai_weight = {
# 			weight = 50
# 			modifier = {
# 				factor = 1.5
# 				resource_income_compare = { resource = trade value < 0 }
# 			}
# 			modifier = {
# 				factor = 1.5
# 				resource_income_compare = { resource = consumer_goods value > 0 }
# 			}
# 		}
# 	}
#
# 	option = {
# 		name = plnmg_currency_tightening
# 		on_enabled = {
# 			every_owned_colony = {
# 				limit = {
# 					or = {
# 						has_deposit = d_commercial_shikara
# 						has_deposit = d_plnmg_financial_shikara
# 					}
# 				}
# 				add_modifier = { modifier = planetmega_currency_tightening }
# 			}
# 		}
# 		on_disabled = {
# 			every_owned_colony = {
# 				limit = { has_modifier = planetmega_currency_tightening }
# 				remove_modifier = planetmega_currency_tightening
# 			}
# 		}
#
# 		ai_weight = {
# 			weight = 50
# 			modifier = {
# 				factor = 1.5
# 				resource_income_compare = { resource = trade value > 0 }
# 			}
# 			modifier = {
# 				factor = 1.5
# 				resource_income_compare = { resource = consumer_goods value < 0 }
# 			}
# 		}
# 	}
# }

planetmega_sacrifice_prod_upkp = {
    category = { economy research }
    potential = { has_technology = tech_plnmg_interthought }

    option = {
        name = plnmg_sacrifice_curve_S_L
        policy_flags = { plnmg_sacrifice_curve_S_L } #L is linear
        ai_weight = { weight = 1 }
    }
    option = {
        name = plnmg_sacrifice_curve_J_J
        #valid = { has_technology = tech_plnmg_interthought_plus }
		prerequisites = { tech_plnmg_interthought_plus }
        policy_flags = { plnmg_sacrifice_curve_J_J }
        ai_weight = { weight = 0 }
    }
    option = {
        name = plnmg_sacrifice_curve_L_L
		#valid = { has_technology = tech_plnmg_interthought_plus }
		prerequisites = { tech_plnmg_interthought_plus }
        policy_flags = { plnmg_sacrifice_curve_L_L }
        ai_weight = { weight = 0 }
    }
    option = {
        name = plnmg_sacrifice_curve_J_L
		potential = { has_technology = tech_planetmega_ultimate_sp }
		valid = { has_technology = tech_planetmega_realedit }
        policy_flags = { plnmg_sacrifice_curve_J_L }
        ai_weight = { weight = 0 }
    }
}

district_plnmg_exp_availability = {
	potential = { has_technology = tech_planetmega_improved }
	option = {
		name = district_plnmg_exp_enabled
		policy_flags = { district_plnmg_exp_enabled }
		modifier = { district_planetmega_expansion_max_add = 5 }
		prerequisites = { tech_planetmega_improved }
		ai_weight = { weight = 0 }
	}
	option = {
		name = district_plnmg_exp_disabled
		policy_flags = { district_plnmg_exp_disabled }
		modifier = {
			planet_buildings_mega_produces_mult = 0.05
            jobs_about_planetmega_produces_mult = 0.05
		}
		ai_weight = { weight = 1 }
	}
}
