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 | |
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. |
Procs | |
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. |
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. |
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. |
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:
- message: A message for the compressor to say when the test ends.
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:
- anomaly_type - anomaly type define
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.