SS1984 - Modules - Types — Var Details - Proc Details

swarmer_team

Vars

analyzer_mob_listAssoc lazylist of mob UIDs to times they have been in an analyzer
mega_swarmer_announcement_madeHave we made an announcement about mega-swarmer already or not
message_cooldownCooldown system for messages on core integrity change
metal_modifierModifier of metal gatherings by swarmers (not structures)
metallic_resourcesAmount of inorganic resources we currently have
organic_resourcesAmount of organic resources we currently have
swarmer_coreReference to our swarmer core.
swarmer_objectiveMain objective given to all swarmers
swarmer_objectsAssoc lazylist of all swarmer structures in format: [key: type] -> [value: list(object uids of this type)]
unlimited_metal_modifierUnlimited modifier of metal gatherings by swarmer used for calculations

Procs

adjust_modifierIncreases metal resource modifier Arguments:
check_objs_of_type_in_range
destroy_swarmer_objectsDestroys swarmer objects one-by-one with a delay
get_metal_modifier_limitHelper proc to get the metal modifier limit
get_transport_hub_listReturns the list used for choosing the hub to teleport to in tgui_input_list proc. hub_to_ignore can be used to not include a certain hub
on_core_destroySignal proc sent on swarmer core destroy
on_core_initSignal proc sent on swarmer core init
on_core_integrity_changedSignal proc sent on swarmer core integrity change
on_core_movedSignal proc sent on swarmer core being moved
on_mega_swarmer_spawnProc sent from mega-swarmer core spawn
start_swarmers_destroyingProc used to start swarmer destroying on core destruction
try_analyze_mobProc used in organic analyzing (mobs)
try_process_organicProc used in organic processing (not mobs)

Var Details

analyzer_mob_list

Assoc lazylist of mob UIDs to times they have been in an analyzer

mega_swarmer_announcement_made

Have we made an announcement about mega-swarmer already or not

message_cooldown

Cooldown system for messages on core integrity change

metal_modifier

Modifier of metal gatherings by swarmers (not structures)

metallic_resources

Amount of inorganic resources we currently have

organic_resources

Amount of organic resources we currently have

swarmer_core

Reference to our swarmer core.

swarmer_objective

Main objective given to all swarmers

swarmer_objects

Assoc lazylist of all swarmer structures in format: [key: type] -> [value: list(object uids of this type)]

unlimited_metal_modifier

Unlimited modifier of metal gatherings by swarmer used for calculations

Proc Details

adjust_modifier

Increases metal resource modifier Arguments:

check_objs_of_type_in_range

Helper proc to check if we have an object of swarmer type in given range.

Arguments:

destroy_swarmer_objects

Destroys swarmer objects one-by-one with a delay

get_metal_modifier_limit

Helper proc to get the metal modifier limit

get_transport_hub_list

Returns the list used for choosing the hub to teleport to in tgui_input_list proc. hub_to_ignore can be used to not include a certain hub

on_core_destroy

Signal proc sent on swarmer core destroy

Sets resource vars to initial values, cleans the core reference, unregisters some core based signals.

on_core_init

Signal proc sent on swarmer core init

Sets swarmer_core variable, adjusts required resources, registers required core signals.

on_core_integrity_changed

Signal proc sent on swarmer core integrity change

Sends a huge message in chat to all members on core being damaged with a cooldown.

on_core_moved

Signal proc sent on swarmer core being moved

Sends a huge message in chat to all members on core being moved.

on_mega_swarmer_spawn

Proc sent from mega-swarmer core spawn

Completes swarmer objectives, makes an announce to the station, sets gamma code.

start_swarmers_destroying

Proc used to start swarmer destroying on core destruction

Starts with mobs, and then starts destroying objects Exists to optimize mass destroying with effects

try_analyze_mob

Proc used in organic analyzing (mobs)

Tries to send a mob to any analyzer one by one. Returns analyzer bitflags (check swarmers.dm defines)

try_process_organic

Proc used in organic processing (not mobs)

Tries to send an item to any processer one by one. Returns processer bitflags (check swarmers.dm defines)