smes 
Vars | |
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 |
Procs | |
adjust_charge | Adjusts the total charge of this smes Arguments |
can_place_terminal | Can we place the terminal based on the players position |
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 |
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
- charge_adjust - the amount of give/take from this smes
can_place_terminal
Can we place the terminal based on the players position
Arguments
- mob/living/user - the player attempting to install the cable
- obj/item/stack/cable_coil/installing_cable - the cable coil used to install the terminal
- silent - should we display error messages
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