/tg/ Station 13 - Modules - TypesVar Details - Proc Details

modular_shield_generator

Vars

activeDoesnt actually control it, just tells us if its running or not, you can control by calling procs activate_shields and deactivate_shields
connected_modulesThe lazy list of machines that are connected to and boosting us
current_regenerationThe regeneration that the shield can support
deployed_shieldsThe lazy list of shields that are ours
exterior_onlyDetermins if we only generate a shield on space turfs or not
initiatingIf the generator is currently spawning the forcefield in
innate_radiusMax radius gained from our own parts
innate_regenRegeneration gained from our own parts
innate_strengthMax strength gained from our own parts
inside_shieldThe lazy list of turfs that are within the shield
list_of_turfsThis is the lazy list of perimeter turfs that we grab when making large shields of 10 or more radius
max_radiusDetermins the max radius the shield can support
max_regenerationShield Regeneration when at 100% efficiency
max_strengthDetermins max health of the shield
max_strength_boostMax Strength gained from machines connected to us
radiusCurrent radius the shield is set to, minimum 3
radius_boostMax Radius gained from machines connected to us
recoveringDetermins if we can turn it on or not, no longer recovering when back to max strength
regen_boostRegeneration gained from machines connected to us
stored_strengthCurrent health of shield

Procs

activate_shieldsgenerates the forcefield based on the given radius and calls calculate_regen to update the regen value accordingly
calculate_boostcalculations for the stats supplied by the network of machines that boost us
calculate_max_strengthCalculates the max strength or health of the forcefield, modifiers go here
calculate_radiusCalculates the max radius the shield generator can support, modifiers go here
calculate_regenerationCalculates the regeneration based on the status of the generator and boosts from network, modifiers go here
deactivate_shieldsqdels the forcefield and calls calculate regen to update the regen value accordingly
finish_fieldAfter giving people a grace period to react to we up the alpha value and make the forcefield dense
shield_drainReduces the strength of the shield based on the given integer
toggle_shieldstoggles the forcefield on and off

Var Details

active

Doesnt actually control it, just tells us if its running or not, you can control by calling procs activate_shields and deactivate_shields

connected_modules

The lazy list of machines that are connected to and boosting us

current_regeneration

The regeneration that the shield can support

deployed_shields

The lazy list of shields that are ours

exterior_only

Determins if we only generate a shield on space turfs or not

initiating

If the generator is currently spawning the forcefield in

innate_radius

Max radius gained from our own parts

innate_regen

Regeneration gained from our own parts

innate_strength

Max strength gained from our own parts

inside_shield

The lazy list of turfs that are within the shield

list_of_turfs

This is the lazy list of perimeter turfs that we grab when making large shields of 10 or more radius

max_radius

Determins the max radius the shield can support

max_regeneration

Shield Regeneration when at 100% efficiency

max_strength

Determins max health of the shield

max_strength_boost

Max Strength gained from machines connected to us

radius

Current radius the shield is set to, minimum 3

radius_boost

Max Radius gained from machines connected to us

recovering

Determins if we can turn it on or not, no longer recovering when back to max strength

regen_boost

Regeneration gained from machines connected to us

stored_strength

Current health of shield

Proc Details

activate_shields

generates the forcefield based on the given radius and calls calculate_regen to update the regen value accordingly

calculate_boost

calculations for the stats supplied by the network of machines that boost us

calculate_max_strength

Calculates the max strength or health of the forcefield, modifiers go here

calculate_radius

Calculates the max radius the shield generator can support, modifiers go here

calculate_regeneration

Calculates the regeneration based on the status of the generator and boosts from network, modifiers go here

deactivate_shields

qdels the forcefield and calls calculate regen to update the regen value accordingly

finish_field

After giving people a grace period to react to we up the alpha value and make the forcefield dense

shield_drain

Reduces the strength of the shield based on the given integer

toggle_shields

toggles the forcefield on and off