core_rotor ![code/modules/power/turbine/turbine.dm 383](git.png)
Vars | |
active | Checks if the machine is processing or not |
---|---|
all_parts_connected | Check to see if all parts are connected to the core |
compressor | Reference to the compressor |
damage | Amount of damage the machine has received |
damage_archived | Used to calculate the max damage received per tick and if the alarm should be called |
mapping_id | ID to easily connect the main part of the turbine to the computer |
max_allowed_rpm | Max rmp that the installed parts can handle, limits the rpms |
max_allowed_temperature | Max temperature that the installed parts can handle, unlimited and causes damage to the machine |
produced_energy | Amount of power the machine is producing |
radio | Our internal radio |
rpm | Rotation per minute the machine is doing |
turbine | Reference to the turbine |
Procs | |
activate_parts | Called to activate the complete machine, checks for part presence, correct orientation and installed parts |
deactivate_parts | Allows to null the various machines and references from the main core |
feedback | convinience proc for balloon alert which returns if viewer is null Arguments |
get_turbine_integrity | Getter for turbine integrity, return the amount in % |
set_overlays | Adds overlays to this turbines appearance |
toggle_power | Toggle power on and off, not safe |
Var Details
active ![code/modules/power/turbine/turbine.dm 395](git.png)
Checks if the machine is processing or not
all_parts_connected ![code/modules/power/turbine/turbine.dm 405](git.png)
Check to see if all parts are connected to the core
compressor ![code/modules/power/turbine/turbine.dm 397](git.png)
Reference to the compressor
damage ![code/modules/power/turbine/turbine.dm 411](git.png)
Amount of damage the machine has received
damage_archived ![code/modules/power/turbine/turbine.dm 413](git.png)
Used to calculate the max damage received per tick and if the alarm should be called
mapping_id ![code/modules/power/turbine/turbine.dm 393](git.png)
ID to easily connect the main part of the turbine to the computer
max_allowed_rpm ![code/modules/power/turbine/turbine.dm 407](git.png)
Max rmp that the installed parts can handle, limits the rpms
max_allowed_temperature ![code/modules/power/turbine/turbine.dm 409](git.png)
Max temperature that the installed parts can handle, unlimited and causes damage to the machine
produced_energy ![code/modules/power/turbine/turbine.dm 403](git.png)
Amount of power the machine is producing
radio ![code/modules/power/turbine/turbine.dm 415](git.png)
Our internal radio
rpm ![code/modules/power/turbine/turbine.dm 401](git.png)
Rotation per minute the machine is doing
turbine ![code/modules/power/turbine/turbine.dm 399](git.png)
Reference to the turbine
Proc Details
activate_parts
Called to activate the complete machine, checks for part presence, correct orientation and installed parts
deactivate_parts
Allows to null the various machines and references from the main core
feedback
convinience proc for balloon alert which returns if viewer is null Arguments
- mob/viewer - the player receiving the message
- text - the message
get_turbine_integrity
Getter for turbine integrity, return the amount in %
set_overlays
Adds overlays to this turbines appearance
toggle_power
Toggle power on and off, not safe