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

core_rotor

Vars

all_parts_connectedCheck to see if all parts are connected to the core
compressorReference to the compressor
damageAmount of damage the machine has received
damage_archivedUsed to calculate the max damage received per tick and if the alarm should be called
engineering_channelThe engineering channel
input_turfReference to the input turf
intake_regulatorRatio of the amount of gas going in the turbine
mapping_idID to easily connect the main part of the turbine to the computer
max_allowed_rpmMax rmp that the installed parts can handle, limits the rpms
max_allowed_temperatureMax temperature that the installed parts can handle, unlimited and causes damage to the machine
output_turfReference to the output turf
produced_energyAmount of power the machine is producing
radioOur internal radio
radio_keyThe key our internal radio uses
rpmRotation per minute the machine is doing
turbineReference to the turbine
was_completeIf the machine was completed before reopening it, try to remake it

Procs

activate_partsCalled to activate the complete machine, checks for part presence, correct orientation and installed parts Registers the input/output turfs and start process_atmos()
all_parts_readyReturns true if all parts have their panel closed
calculate_damage_doneCalled on each atmos tick, calculates the damage done and healed based on temperature
call_parts_update_appearanceCalls all parts update appearance proc.
damage_alertCalled once every 15 to 5 seconds (depend on damage done), handles alarm calls
deactivate_partsAllows to null the various machines and references from the main core
do_calculationsHandles all the calculations needed for the gases, work done, temperature increase/decrease
failureCalled when the integrity reaches 0%, explode the machine based on the reached RPM
get_turbine_integrityGetter for turbine integrity, return the amount in %
power_offDeactivate all three parts, not safe, it assumes the machine already connected and properly working
power_onActivate all three parts, not safe, it assumes the machine already connected and properly working
toggle_powerToggle power on and off, not safe

Var Details

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

engineering_channel

The engineering channel

input_turf

Reference to the input turf

intake_regulator

Ratio of the amount of gas going in the turbine

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

output_turf

Reference to the output turf

produced_energy

Amount of power the machine is producing

radio

Our internal radio

radio_key

The key our internal radio uses

rpm

Rotation per minute the machine is doing

turbine

Reference to the turbine

was_complete

If the machine was completed before reopening it, try to remake it

Proc Details

activate_parts

Called to activate the complete machine, checks for part presence, correct orientation and installed parts Registers the input/output turfs and start process_atmos()

all_parts_ready

Returns true if all parts have their panel closed

calculate_damage_done

Called on each atmos tick, calculates the damage done and healed based on temperature

call_parts_update_appearance

Calls all parts update appearance proc.

damage_alert

Called once every 15 to 5 seconds (depend on damage done), handles alarm calls

deactivate_parts

Allows to null the various machines and references from the main core

do_calculations

Handles all the calculations needed for the gases, work done, temperature increase/decrease

failure

Called when the integrity reaches 0%, explode the machine based on the reached RPM

get_turbine_integrity

Getter for turbine integrity, return the amount in %

power_off

Deactivate all three parts, not safe, it assumes the machine already connected and properly working

power_on

Activate all three parts, not safe, it assumes the machine already connected and properly working

toggle_power

Toggle power on and off, not safe