
# pop group scope

planetmega_white_mice_pts_mult = {
    modifier = {
        set = colony.num_plnmg_usable_bodies
        colony = { is_variable_set = num_plnmg_usable_bodies }
    }
    square_root = yes
    divide = 3
    round = yes
    min = 0
    add = 1
    modifier = {
        add = 1
        owner? = { is_hive_empire = yes }
    }
    mult = colony.value:scripted_modifier_mult|MODIFIER|planet_buildings_mega_produces_mult|
    #divide = colony.value:sv_mult_job_plnmg_biobreakers_workforce
    round = yes
}
planetmega_white_mice_pks_mult = {
    modifier = {
        set = colony.num_plnmg_usable_bodies
        colony = { is_variable_set = num_plnmg_usable_bodies }
    }
    square_root = yes
    divide = 8
    round = yes
    min = 0
    mult = colony.value:scripted_modifier_mult|MODIFIER|planet_buildings_mega_produces_mult|
    #divide = colony.value:sv_mult_job_plnmg_biobreakers_workforce
    round = yes
}
planetmega_white_mice_upkeep_mult = {
    modifier = {
        set = num_plnmg_usable_bodies
        is_variable_set = num_plnmg_usable_bodies
    }
    # square_root = yes
    # divide = 3
    # round = yes
    min = 0
    # add = 1
    # modifier = {
    # 	add = 1
    # 	owner? = { is_hive_empire = yes }
    # }
}

# planet scope

sv_plnmg_subject_monthly_add = {
    add = modifier:planet_subject_assembly_organic_add
    modifier = {
        owner? = { is_hive_empire = yes }
        mult = 1.25
    }
    mult = value:scripted_modifier_mult_capped|MODIFIER|planet_subject_assembly_organic_mult|CAP|0|
}

sv_plnmg_subject_assembly_convert_passes = {
    add = value:scripted_modifier_add|MODIFIER|fake_pop_growth_mod|
    mult = value:scripted_modifier_mult|MODIFIER|bonus_pop_growth_mult|
    mult = 0.1
    add = 10
    max = value:sv_plnmg_subassem_cnv_passes_max
    floor = yes
}
sv_plnmg_subassem_cnv_passes_max = {
    set = num_plnmg_unfiltered_bodies
    mult = 0.01
    min = 0
}
