/tg/ Station 13 - Modules - TypesVar Details - Proc Details

smes

Vars

chargeThe initial charge of this smes.
input_attemptTRUE = attempting to charge, FALSE = not attempting to charge
input_availableamount of charge available from input last tick
input_levelamount of power the SMES attempts to charge by
input_level_maxcap on input_level
inputtingTRUE = actually inputting, FALSE = not inputting
output_attemptTRUE = attempting to output, FALSE = not attempting to output
output_levelamount of power the SMES attempts to output
output_level_maxcap on output_level
output_usedamount of power actually outputted. may be less than output_level if the powernet returns excess power
outputtingTRUE = actually outputting, FALSE = not outputting
show_display_lightsShould we show display lights
terminalTerminal for charging this smes
total_capacityMax capacity of all cells in this smes

Procs

adjust_chargeAdjusts the total charge of this smes Arguments
can_place_terminalCan we place the terminal based on the players position
chargedisplayReturns the charge level this smes is at 0->5 for display purposes
log_smesLogs the current state of this smes
total_chargeReturns the total charge of this smes

Var Details

charge

The initial charge of this smes.

input_attempt

TRUE = attempting to charge, FALSE = not attempting to charge

input_available

amount of charge available from input last tick

input_level

amount of power the SMES attempts to charge by

input_level_max

cap on input_level

inputting

TRUE = actually inputting, FALSE = not inputting

output_attempt

TRUE = attempting to output, FALSE = not attempting to output

output_level

amount of power the SMES attempts to output

output_level_max

cap on output_level

output_used

amount of power actually outputted. may be less than output_level if the powernet returns excess power

outputting

TRUE = actually outputting, FALSE = not outputting

show_display_lights

Should we show display lights

terminal

Terminal for charging this smes

total_capacity

Max capacity of all cells in this smes

Proc Details

adjust_charge

Adjusts the total charge of this smes Arguments

can_place_terminal

Can we place the terminal based on the players position

Arguments

chargedisplay

Returns the charge level this smes is at 0->5 for display purposes

log_smes

Logs the current state of this smes

total_charge

Returns the total charge of this smes