SS1984 - Modules - TypesVar Details

energy_ball

The Tesla engine

Vars

energyCurrent energy of the ball. Affects creation/removal of miniballs and zap power.
energy_to_lowerEnergy threshold below which one orbiting miniball is removed.
energy_to_raiseEnergy threshold above which the ball spawns a new miniball.
miniballTRUE if this is a miniball (does not spawn new balls nor generate power).
orbiting_ballsList of miniballs orbiting this ball.
produced_powerPower produced (not used in this snippet).
shocked_thingsList of objects already shocked in the current cycle to avoid double shocks.
targetTarget towards which the ball moves with some probability.

Var Details

energy

Current energy of the ball. Affects creation/removal of miniballs and zap power.

energy_to_lower

Energy threshold below which one orbiting miniball is removed.

energy_to_raise

Energy threshold above which the ball spawns a new miniball.

miniball

TRUE if this is a miniball (does not spawn new balls nor generate power).

orbiting_balls

List of miniballs orbiting this ball.

produced_power

Power produced (not used in this snippet).

shocked_things

List of objects already shocked in the current cycle to avoid double shocks.

target

Target towards which the ball moves with some probability.