SS1984 - Modules - Types — Var Details - Proc Details

organic_processer

Swarmer organic processer

Allows swarmers to process organic items, like fruits, vegetables, or reagents in containers. All items that can be processed are listed in code/modules/antagonists/swarmers/swarmer_acts/core_swarmer_acts.dm

Vars

currently_processingHow many items we are currently processing
process_limitHow much stuff can we process at once
sound_loopActive processing sound loop
spark_systemSpark system (since we use them a lot)

Procs

finish_processingTimer callback proc
try_load_itemHandles loading in items, checks if we have any space for them. Returns TRUE if we have space. Returns FALSE otherwise.

Var Details

currently_processing

How many items we are currently processing

process_limit

How much stuff can we process at once

sound_loop

Active processing sound loop

spark_system

Spark system (since we use them a lot)

Proc Details

finish_processing

Timer callback proc

Deletes one item, if there are any in contents. Adjusts organic resources. If we have anything else to process, we restart the timer.

try_load_item

Handles loading in items, checks if we have any space for them. Returns TRUE if we have space. Returns FALSE otherwise.