• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Neceros

Corporal
15 Badges
Apr 24, 2016
43
58
  • Magicka
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Synthetic Dawn
Code:
d_null_deposit = {
    is_null = yes

    drop_weight = {
        weight = 50
        modifier = {
            weight = 0
            planet = {
                OR = {
                    is_planet_class = pc_black_hole
                    is_planet_class = pc_neutron_star
                    is_planet_class = pc_pulsar
                }
            }
        }
        modifier = {
            weight = 33
            planet = {
                is_planet_class = pc_gaia
            }
        }
        modifier = {
            weight = 100
            planet = {
                OR = {
                    is_planet_class = pc_barren
                    is_planet_class = pc_barren_cold
                    is_planet_class = pc_a_star
                    is_planet_class = pc_b_star
                    is_planet_class = pc_f_star
                    is_planet_class = pc_g_star
                    is_planet_class = pc_k_star
                    is_planet_class = pc_m_star
                    is_planet_class = pc_nuked
                }
            }
        }
    }
}

Is that the basis for all other deposits? As in, is this weight of 0, 33 and 100 respectively what other deposits have to fight against for drop weight?

Also, what IS the weight under drop_weight (not in a modifier) do, and why do no other deposits have one? all other deposit weights are in a modifier.
 
Not really the basis so to speak, as the odds appear to work by totaling them. So if null_deposit has a weight of 100 and another also has a weight of 100 you have 100:200 odds of getting either.

drop_weight is the "container" used for the weight of the deposit, the weight listed before any modifiers is the default weight used for all cases that aren't covered by a modifier. So in null_depost the weight is 50 for the planet classes not listed, so asteroids, gas giants, toxic/frozen/molten planets and so on. It could have just as easily achieve the same effect without that weight = 50 line and then the first modifier having a weight of 50 for asteroids, gas giants, toxic, frozen and molten planets. For all other deposits modifiers are used to control where they show up since the default weight is 0 but in null_deposit it makes more sense to have a default that isn't 0.

Does that help?
 
  • 1
Reactions: