/tg/ Station 13 - Modules - Types — Var Details - Proc Details

durand

Vars

damage_to_charge_ratioHow much damage is converted to cell drain by active shielding?
defense_modeBool for energy shield on/off
passive_shield_drainEnergy used to maintain active shielding passively
shieldFake shield object we use as a way to redirect attacks off ourselves
switchingIs the shield currently switching modes?

Procs

defense_checkChecks if defense mode is enabled, and if the attacker is standing in an area covered by the shield. Expects a turf. Returns true if the attack should be blocked, false if not.

Var Details

damage_to_charge_ratio

How much damage is converted to cell drain by active shielding?

defense_mode

Bool for energy shield on/off

passive_shield_drain

Energy used to maintain active shielding passively

shield

Fake shield object we use as a way to redirect attacks off ourselves

switching

Is the shield currently switching modes?

Proc Details

defense_check

Checks if defense mode is enabled, and if the attacker is standing in an area covered by the shield. Expects a turf. Returns true if the attack should be blocked, false if not.