generator ![code/modules/power/singularity/field_generator.dm 26](git.png)
Vars | |
active | Current power mode of the machine, between FG_OFFLINE, FG_CHARGING, FG_ONLINE |
---|---|
clean_up | Check for asynk cleanups for this and the connected gens |
connected_gens | List of every field generators connected to this one |
fields | List of every containment fields connected to this generator |
instantenous | we warm up and cool down instantly |
power | Current amount of power |
power_level | Amount of energy stored, used for visual overlays (over 9000?) |
state | Current state of the machine, between FG_UNSECURED, FG_SECURED, FG_WELDED |
warming_up | Timer between 0 and 3 before the field gets made |
Procs | |
check_power_level | The power level is displayed using overlays. The current displayed power level is stored in 'powerlevel'. The overlay in use and the powerlevel variable must be kept in sync. A powerlevel equal to 0 means that no power level overlay is currently in the overlays list. |
Var Details
active ![code/modules/power/singularity/field_generator.dm 41](git.png)
Current power mode of the machine, between FG_OFFLINE, FG_CHARGING, FG_ONLINE
clean_up ![code/modules/power/singularity/field_generator.dm 53](git.png)
Check for asynk cleanups for this and the connected gens
connected_gens ![code/modules/power/singularity/field_generator.dm 51](git.png)
List of every field generators connected to this one
fields ![code/modules/power/singularity/field_generator.dm 49](git.png)
List of every containment fields connected to this generator
instantenous ![code/modules/power/singularity/field_generator.dm 55](git.png)
we warm up and cool down instantly
power ![code/modules/power/singularity/field_generator.dm 43](git.png)
Current amount of power
power_level ![code/modules/power/singularity/field_generator.dm 39](git.png)
Amount of energy stored, used for visual overlays (over 9000?)
state ![code/modules/power/singularity/field_generator.dm 45](git.png)
Current state of the machine, between FG_UNSECURED, FG_SECURED, FG_WELDED
warming_up ![code/modules/power/singularity/field_generator.dm 47](git.png)
Timer between 0 and 3 before the field gets made
Proc Details
check_power_level
The power level is displayed using overlays. The current displayed power level is stored in 'powerlevel'. The overlay in use and the powerlevel variable must be kept in sync. A powerlevel equal to 0 means that no power level overlay is currently in the overlays list.