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

Explosive compressor machines

The explosive compressor machine used in anomaly core production.

Uses the standard ordnance/tank explosion scaling to compress raw anomaly cores into completed ones. The required explosion radius increases as more cores of that type are created.

Vars

activeWhether we are currently active a bomb and core.
combined_gasmixCombined result of the first two tanks. Exists only in our machine.
inserted_bombThe TTV inserted in the machine.
inserted_coreThe raw core inserted in the machine.
reaction_incrementHere for the UI, tracks the amounts of reaction that has occured. 1 means valve opened but not reacted.
tank_to_targetDetermines which tank will be the merge_gases target (destroyed upon testing).
test_statusThe message produced by the explosive compressor at the end of the compression test.
timeout_timerThe timer that lets us timeout the test.

Procs

ExitedWe rely on exited to clear references.
check_testChecks whether an internal explosion was sufficient to compress the core.
eject_bombWe dont allow incomplete valves to go in but do code in checks for incomplete valves. Just in case.
end_testEnds a compression test.
error_testEjects a live TTV. Triggered by attempting to operate an emagged anomaly refinery.
get_required_radiusDetermines how much explosive power (last value, so light impact theoretical radius) is required to make a certain anomaly type.
simulate_valveThis is not the real valve opening process. This is the simulated one used for displaying reactions.
start_testStarts a compression test.
timeout_testHandles timing out the test after a while.

Var Details

active

Whether we are currently active a bomb and core.

combined_gasmix

Combined result of the first two tanks. Exists only in our machine.

inserted_bomb

The TTV inserted in the machine.

inserted_core

The raw core inserted in the machine.

reaction_increment

Here for the UI, tracks the amounts of reaction that has occured. 1 means valve opened but not reacted.

tank_to_target

Determines which tank will be the merge_gases target (destroyed upon testing).

test_status

The message produced by the explosive compressor at the end of the compression test.

timeout_timer

The timer that lets us timeout the test.

Proc Details

Exited

We rely on exited to clear references.

check_test

Checks whether an internal explosion was sufficient to compress the core.

eject_bomb

We dont allow incomplete valves to go in but do code in checks for incomplete valves. Just in case.

end_test

Ends a compression test.

Arguments:

error_test

Ejects a live TTV. Triggered by attempting to operate an emagged anomaly refinery.

get_required_radius

Determines how much explosive power (last value, so light impact theoretical radius) is required to make a certain anomaly type.

Returns null if the max amount has already been reached.

Arguments:

simulate_valve

This is not the real valve opening process. This is the simulated one used for displaying reactions.

start_test

Starts a compression test.

timeout_test

Handles timing out the test after a while.