# planet scope

sv_count_plnmg_wilderness_growth = {
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_cradle_of_rebirth
            in_construction = no
            disabled = no
        }
        mode = add
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_fe_clinic_1
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 2
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_fe_clinic_2
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 4
    }
}
sv_count_job_plnmg_wilderness_growth = {
    base = 1
    add = modifier:planetmega_job_amount_mult
    mult = value:sv_count_plnmg_wilderness_growth
}
sv_count_mod_plnmg_wilderness_growth = {
    base = 1
    add = modifier:jobs_about_planetmega_produces_mult
    mult = value:sv_count_plnmg_wilderness_growth
}

sv_count_plnmg_wilderness_logistics = {
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_cradle_of_rebirth
            in_construction = no
            disabled = no
        }
        mode = add
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_tendril_cradle_2
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 2
    }
    modifier = {
        has_building = building_tendril_cradle_3
        add = 4
    }
    modifier = {
        has_building = building_tendril_cradle_4
        add = 4
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_fe_market_1
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_fe_market_2
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 12
    }
}
sv_count_job_plnmg_wilderness_logistics = {
    set = value:sv_count_plnmg_wilderness_logistics
    mult = value:scripted_modifier_mult|MODIFIER|planetmega_job_amount_mult|
}

sv_count_plnmg_wilderness_unity = {
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_commensal_clearing_1
            in_construction = no
            disabled = no
        }
        mode = add
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_commensal_clearing_2
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 2
    }
    modifier = {
        has_building = building_commensal_clearing_3
        add = 4
    }
    modifier = {
        has_building = building_commensal_clearing_4
        add = 4
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_fe_administration_hive_1
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_fe_administration_hive_2
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
}
sv_count_job_plnmg_wilderness_unity = {
    set = value:sv_count_plnmg_wilderness_unity
    mult = value:scripted_modifier_mult|MODIFIER|planetmega_job_amount_mult|
}

sv_count_plnmg_wilderness_food = {
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_massive_growth_1
            in_construction = no
            disabled = no
        }
        mode = add
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_massive_growth_2
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 2
    }
    modifier = {
        has_building = building_massive_growth_3
        add = 4
    }
    modifier = {
        has_building = building_massive_growth_4
        add = 4
    }
    complex_trigger_modifier = {
        trigger = num_districts
        parameters = { type = district_orchard_forests }
        mode = add
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_nourishment_complex
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_nourishment_center
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
}
sv_count_job_plnmg_wilderness_food = {
    set = value:sv_count_plnmg_wilderness_food
    mult = value:scripted_modifier_mult|MODIFIER|planetmega_job_amount_mult|
}

sv_count_plnmg_wilderness_energy = {
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_bioelectric_stimulator_1
            in_construction = no
            disabled = no
        }
        mode = add
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_bioelectric_stimulator_2
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 2
    }
    modifier = {
        has_building = building_bioelectric_stimulator_3
        add = 4
    }
    modifier = {
        has_building = building_bioelectric_stimulator_4
        add = 4
    }
    complex_trigger_modifier = {
        trigger = num_districts
        parameters = { type = district_photosynthesis_fields }
        mode = add
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_class_3_singularity
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_class_4_singularity
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
}
sv_count_job_plnmg_wilderness_energy = {
    set = value:sv_count_plnmg_wilderness_energy
    mult = value:scripted_modifier_mult|MODIFIER|planetmega_job_amount_mult|
}

sv_count_plnmg_wilderness_mineral = {
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_churning_tunnels_1
            in_construction = no
            disabled = no
        }
        mode = add
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_churning_tunnels_2
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 2
    }
    modifier = {
        has_building = building_churning_tunnels_3
        add = 4
    }
    modifier = {
        has_building = building_churning_tunnels_4
        add = 4
    }
    complex_trigger_modifier = {
        trigger = num_districts
        parameters = { type = district_hollow_mountains }
        mode = add
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_fe_mine_1
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_fe_mine_2
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
}
sv_count_job_plnmg_wilderness_mineral = {
    set = value:sv_count_plnmg_wilderness_mineral
    mult = value:scripted_modifier_mult|MODIFIER|planetmega_job_amount_mult|
}

sv_count_plnmg_wilderness_alloy = {
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_natural_furnace_0
            in_construction = no
            disabled = no
        }
        mode = add
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_natural_furnace_1
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 2
    }
    modifier = {
        has_building = building_natural_furnace_2
        add = 4
    }
    modifier = {
        has_building = building_natural_furnace_3
        add = 4
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_micro_forge
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_nano_forge
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 6
    }
}
sv_count_job_plnmg_wilderness_alloy = {
    set = value:sv_count_plnmg_wilderness_alloy
    mult = value:scripted_modifier_mult|MODIFIER|planetmega_job_amount_mult|
}

sv_count_plnmg_wilderness_amenity = {
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_avatar_chamber_1
            in_construction = no
            disabled = no
        }
        mode = add
    }
    complex_trigger_modifier = {
        potential = { has_building = building_avatar_chamber_2 }
        trigger = num_buildings
        parameters = {
            type = building_avatar_chamber_1
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 0.5
    }
    complex_trigger_modifier = {
        potential = { has_building = building_avatar_chamber_3 }
        trigger = num_buildings
        parameters = {
            type = building_avatar_chamber_1
            in_construction = no
            disabled = no
        }
        mode = add
    }
    complex_trigger_modifier = {
        potential = { has_building = building_avatar_chamber_4 }
        trigger = num_buildings
        parameters = {
            type = building_avatar_chamber_1
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 2
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_avatar_chamber_2
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 1.5
    }
    modifier = {
        has_building = building_avatar_chamber_3
        add = 2
    }
    modifier = {
        has_building = building_avatar_chamber_4
        add = 3
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_fe_sky_dome
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 10
    }
    complex_trigger_modifier = {
        trigger = num_buildings
        parameters = {
            type = building_fe_dome
            in_construction = no
            disabled = no
        }
        mode = add
        mult = 20
    }
}
sv_count_mod_plnmg_wilderness_amenity = {
    set = value:sv_count_plnmg_wilderness_amenity
    mult = value:scripted_modifier_mult|MODIFIER|jobs_about_planetmega_produces_mult|
}

sv_mult_planetmega_biomass_produces = {
    add = modifier:planetmega_biomass_produces_add
    mult = value:scripted_modifier_mult|MODIFIER|planetmega_biomass_produces_mult|
    min = 0
}
sv_mult_planetmega_biomass_produces_fat = {
    set = value:sv_mult_planetmega_biomass_produces
    mult = 2.5
}
