swarmer_team 
Vars | |
| 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 |
Procs | |
| adjust_modifier | Increases metal resource modifier Arguments: |
| check_objs_of_type_in_range | |
| 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 |
| on_core_init | Signal proc sent on swarmer core init |
| on_core_integrity_changed | Signal proc sent on swarmer core integrity change |
| on_core_moved | Signal proc sent on swarmer core being moved |
| on_mega_swarmer_spawn | Proc sent from mega-swarmer core spawn |
| start_swarmers_destroying | Proc used to start swarmer destroying on core destruction |
| try_analyze_mob | Proc used in organic analyzing (mobs) |
| try_process_organic | Proc 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:
- adjust_amount: The amount to substract or add upon the modifier
check_objs_of_type_in_range
Helper proc to check if we have an object of swarmer type in given range.
Arguments:
- target_turf - turf to check the range from
- range - the range to check the distance for
- obj_type - type of objects we are looking for
- check_unanchored - whether we ignore unanchored objects, TRUE by default
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)