modular_shield_generator 
Vars | |
active | Doesn't 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 | Determines 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 | Determines the max radius the shield can support |
max_regeneration | Shield Regeneration when at 100% efficiency |
max_strength | Determines 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 | Determines 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 |
Procs | |
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 |
Var Details
active 
Doesn't 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 
Determines 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 
Determines the max radius the shield can support
max_regeneration 
Shield Regeneration when at 100% efficiency
max_strength 
Determines 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 
Determines 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