Explosive compressor machines

The explosive compressor machine used in anomaly core production.
Uses the standard toxins/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 | |
inserted_bomb | The TTV inserted in the machine. |
---|---|
inserted_core | The raw core inserted in the machine. |
last_requirements_say | The last time we did say_requirements(), because someone will inevitably click spam this. |
test_status | The message produced by the explosive compressor at the end of the compression test. |
testing | Whether we are currently testing a bomb and core. |
timeout_timer | The timer that lets us timeout the test. |
Procs | |
check_test | Checks whether an internal explosion was sufficient to compress the core. |
end_test | Ends a compression test. |
get_required_radius | Determines how much explosive power (last value, so light impact theoretical radius) is required to make a certain anomaly type. |
say_requirements | Says (no, literally) the data of required explosive power for a certain anomaly type. |
start_test | Starts a compression test. |
timeout_test | Handles timing out the test after a while. |
Var Details
inserted_bomb

The TTV inserted in the machine.
inserted_core

The raw core inserted in the machine.
last_requirements_say

The last time we did say_requirements(), because someone will inevitably click spam this.
test_status

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

Whether we are currently testing a bomb and core.
timeout_timer

The timer that lets us timeout the test.
Proc Details
check_test
Checks whether an internal explosion was sufficient to compress the core.
end_test
Ends a compression test.
Arguments:
- message: A message for the compressor to say when the test ends.
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
say_requirements
Says (no, literally) the data of required explosive power for a certain anomaly type.
start_test
Starts a compression test.
timeout_test
Handles timing out the test after a while.