WORLD RULES
> ANALYSIS every effect has a cause.
> SUBLIMATION
- FOR
- body · each resource
- WHEN
- temperature > resource.sublimes_at
gravity < 500.0 - CHANCE
- 0.05
- THEN
- resource.amount * 0.01 + 20 of the resource escapes into the body's trail
> MELTING
- FOR
- body · each resource
- WHEN
- temperature > resource.melts_at
gravity >= 500.0 - CHANCE
- 0.1
- THEN
- resource.amount * 0.1 + 10 of the resource turns into what it melts into
> FREEZING
- FOR
- body · each resource
- WHEN
- temperature < resource.melts_at
- CHANCE
- 0.1
- THEN
- resource.amount * 0.1 + 10 of the resource turns into what it freezes into
> COLLISION
- FOR
- pair
- WHEN
- distance < body.size * 0.1 + other.size * 0.1
energy > body.hardness * 500 + other.hardness * 500 - CHANCE
- energy * 0.0001
- THEN
- both bodies break into 2 fragments and debris, warmed by energy * 0.05 K
> SLINGSHOT
- FOR
- pair
- WHEN
- distance < body.size + other.size
mass_ratio > 20.0
speed > 1.5 - CHANCE
- 0.001
- THEN
- the lighter body leaves the system at speed * 2, for the star at the other end of a route, into an orbit of size 40 (stretch 0.6)
> MOON_CAPTURE
- FOR
- pair
- WHEN
- distance < body.size * 0.6 + other.size * 0.6
mass_ratio > 5.0 - CHANCE
- always
- THEN
- the lighter body starts orbiting the heavier
> ACCRETION
- FOR
- pair
- WHEN
- distance < body.size * 0.05 + other.size * 0.05
energy <= body.hardness * 500 + other.hardness * 500 - CHANCE
- 0.1
- THEN
- the two bodies merge into one, warmed by energy * 0.05 K
> RADIATING
- FOR
- body
- WHEN
- warmth > 0.0
- CHANCE
- always
- THEN
- the body's warmth changes by warmth * -0.05 + -1 K
> DIFFERENTIATION
- FOR
- body
- WHEN
- temperature > body.melts_at
- CHANCE
- 0.02
- THEN
- its molten resources settle: dense ones sink to the core, light ones rise to the surface
> BODY KINDS · FIRST MATCH WINS
- MOON
- parent_mass > 0.0
- ANOMALY
- share.exotics > 0.2
- PLANET
- size >= 8.0
- ICE_FIELD
- share.ice > 0.5
- ASTEROID_FIELD
- anything else