Goonstation 13 - Modules - TypesVar Details - Proc Details

power cable spawner

a cable spawner which can spawn multiple cables to connect to other cables around it.

Vars

cable_surrcable_surr uses the unique ordinal dirs to save directions as it needs to store up to 8 at once

Procs

cable_layingplaces a cable with d1 and d2
checkchecks around itself for cables, adds up to 8 bits to cable_surr
initializemakes the cable spawners actually spawn cables and delete themselves
replacecauses cable spawner to spawn cables (amazing)

Var Details

cable_surr

cable_surr uses the unique ordinal dirs to save directions as it needs to store up to 8 at once

Proc Details

cable_laying

places a cable with d1 and d2

check

checks around itself for cables, adds up to 8 bits to cable_surr

initialize

makes the cable spawners actually spawn cables and delete themselves

replace

causes cable spawner to spawn cables (amazing)