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

canister

Vars

current_pressure_stateused while processing to update appearance only when its pressure state changes
filledHow much the canister should be filled (recommended from 0 to 1)
gas_typeStores the path of the gas for mapped canisters
internal_cellThe powercell used to enable shielding
maximum_pressureMaximum pressure allowed on initialize inside the canister, multiplied by the filled var
release_logUsed to log opening and closing of the valve, available on VV
release_pressurePlayer controlled var that set the release pressure of the canister
shielding_poweredIs shielding turned on/off
valve_openIs the valve open?
windowWindow overlay showing the gas inside the canister

Procs

canister_breakHandle canisters disassemble, releases the gas content in the turf
create_gasCalled on Initialize(), fill the canister with the gas_type specified up to the filled level (half if 0.5, full if 1) Used for canisters spawned in maps and by admins
eject_tankEjects tank from canister, if any
get_pressure_statereturn the icon_state component for the canister's indicator light based on its current pressure reading
toggle_reaction_suppressionTurns hyper-noblium crystal reaction suppression in the canister on or off
toggle_shieldingTurns canister shielding on or off
toggle_valveOpens/closes the canister valve
update_greyscaleFunction is used to actually set the overlays
update_windowUpdates the overlays of this canister based on its air contents

Var Details

current_pressure_state

used while processing to update appearance only when its pressure state changes

filled

How much the canister should be filled (recommended from 0 to 1)

gas_type

Stores the path of the gas for mapped canisters

internal_cell

The powercell used to enable shielding

maximum_pressure

Maximum pressure allowed on initialize inside the canister, multiplied by the filled var

release_log

Used to log opening and closing of the valve, available on VV

release_pressure

Player controlled var that set the release pressure of the canister

shielding_powered

Is shielding turned on/off

valve_open

Is the valve open?

window

Window overlay showing the gas inside the canister

Proc Details

canister_break

Handle canisters disassemble, releases the gas content in the turf

create_gas

Called on Initialize(), fill the canister with the gas_type specified up to the filled level (half if 0.5, full if 1) Used for canisters spawned in maps and by admins

eject_tank

Ejects tank from canister, if any

get_pressure_state

return the icon_state component for the canister's indicator light based on its current pressure reading

toggle_reaction_suppression

Turns hyper-noblium crystal reaction suppression in the canister on or off

toggle_shielding

Turns canister shielding on or off

toggle_valve

Opens/closes the canister valve

update_greyscale

Function is used to actually set the overlays

update_window

Updates the overlays of this canister based on its air contents