durand_shield
Shield processing *An object to take the hit for us when using the Durand's defense mode. It is spawned in during the durand's initilization, and always stays on the same tile. Normally invisible, until defense mode is actvated. When the durand detects an attack that should be blocked, the attack is passed to the shield. The shield takes the damage, uses it to calculate charge cost, and then sets its own integrity back to max. Shield is automatically dropped if we run out of power or the user gets out.
Vars | |
melee_pass | To keep track of things during the animation if this shield lets melee attacks pass and hit the mech directly |
---|---|
ranged_pass | if this shield lets projectiles pass and hit the mech directly |
switching | Our link back to the durand |
Procs | |
activate | *Handles activating and deactivating the shield. This proc is called by a signal sent from the mech's action button and relayed by the mech itself. The "forced" variabe, signal_args[1], will skip the to-pilot text and is meant for when the shield is disabled by means other than the action button (like running out of power) |
contact | a mob has bumped into the shield |
Var Details
melee_pass
To keep track of things during the animation if this shield lets melee attacks pass and hit the mech directly
ranged_pass
if this shield lets projectiles pass and hit the mech directly
switching
Our link back to the durand
Proc Details
activate
*Handles activating and deactivating the shield. This proc is called by a signal sent from the mech's action button and relayed by the mech itself. The "forced" variabe, signal_args[1], will skip the to-pilot text and is meant for when the shield is disabled by means other than the action button (like running out of power)
contact
a mob has bumped into the shield