gravitational singularity  
| Vars | |
| contained | Value which stores whether it is currently under containment | 
|---|---|
| die_over_time | If enabled, the singularity will slowly lose stored_energy and be deleted when it runs at or below 0. | 
| duration_to_live | The amount of time in seconds the singularity will live for before expiring, in seconds. If null, it lives forever. | 
| gib_mobs | if it should call gib on mobs | 
| gravity_pull_radius | The initial radius, in tiles, that the singularity will pull objects within. Changes with radius | 
| katamari_mode | If true the sucked-in objects will get stuck to the singularity | 
| max_radius | the maximum radius the singularity can grow to. Overriden on init to a sensible value | 
| num_absorbed | Number of objects absorbed by the singularity | 
| num_absorbed_players | number of players absorbed | 
| radius | the variable used for all calculations involving radius. | 
| restricted_z_allowed | Whether to annihilate this singularity if it is spawned on restricted z-levels. You can probably guess why | 
| right_spinning | boolean for the spaghettification animation spin direction | 
| self_move | Controls whether or not the singularity moves on its own. | 
| spaget_count | Count for rate-limiting the spaghettification effect | 
| stored_energy | Amount of energy the singularity has absorbed from objects. If at or below 0, the singularity dissapears | 
| succ_cache | An associative list of object types consumed to the number of times eaten, used for diminishing returns on energy. | 
| target_turf | Targeted turf when loose | 
| target_turf_counter | How many steps we'll continue to walk towards the target turf before rerolling | 
| worldtime_spawned | The world.time that this singularity was spawned. Used to keep track of time to live for event singularities | 
| Procs | |
| calc_direction | Returns a 2D vector representing the resultant force acting on the singulo by all gravity wells, scaled by their distance | 
| event | Controls which "event" is called | 
Var Details
contained 
Value which stores whether it is currently under containment
die_over_time 
If enabled, the singularity will slowly lose stored_energy and be deleted when it runs at or below 0.
duration_to_live 
The amount of time in seconds the singularity will live for before expiring, in seconds. If null, it lives forever.
gib_mobs 
if it should call gib on mobs
gravity_pull_radius 
The initial radius, in tiles, that the singularity will pull objects within. Changes with radius
katamari_mode 
If true the sucked-in objects will get stuck to the singularity
max_radius 
the maximum radius the singularity can grow to. Overriden on init to a sensible value
num_absorbed 
Number of objects absorbed by the singularity
num_absorbed_players 
number of players absorbed
radius 
the variable used for all calculations involving radius.
restricted_z_allowed 
Whether to annihilate this singularity if it is spawned on restricted z-levels. You can probably guess why
right_spinning 
boolean for the spaghettification animation spin direction
self_move 
Controls whether or not the singularity moves on its own.
spaget_count 
Count for rate-limiting the spaghettification effect
stored_energy 
Amount of energy the singularity has absorbed from objects. If at or below 0, the singularity dissapears
succ_cache  
An associative list of object types consumed to the number of times eaten, used for diminishing returns on energy.
target_turf  
Targeted turf when loose
target_turf_counter 
How many steps we'll continue to walk towards the target turf before rerolling
worldtime_spawned 
The world.time that this singularity was spawned. Used to keep track of time to live for event singularities
Proc Details
calc_direction
Returns a 2D vector representing the resultant force acting on the singulo by all gravity wells, scaled by their distance
event
Controls which "event" is called