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

anti_magic

This provides different types of magic resistance on an object

Vars

antimagic_flagsA bitflag with the types of magic resistance on the object
casting_restriction_alertIf we have already sent a notification message to the mob picking up an antimagic item
chargesThe amount of times the object can protect the user from magic
drain_antimagicThe proc that is triggered when an object has been drained a antimagic charge
expirationThe proc that is triggered when the object is depleted of charges
inventory_flagsThe inventory slot the object must be located at in order to activate

Procs

InitializeAdds magic resistances to an object
restrict_casting_magiccannot cast magic with the same type of antimagic present

Var Details

antimagic_flags

A bitflag with the types of magic resistance on the object

casting_restriction_alert

If we have already sent a notification message to the mob picking up an antimagic item

charges

The amount of times the object can protect the user from magic

drain_antimagic

The proc that is triggered when an object has been drained a antimagic charge

expiration

The proc that is triggered when the object is depleted of charges

inventory_flags

The inventory slot the object must be located at in order to activate

Proc Details

Initialize

Adds magic resistances to an object

Magic resistance will prevent magic from affecting the user if it has the correct resistance against the type of magic being used

args:

antimagic bitflags: (see code/__DEFINES/magic.dm)

restrict_casting_magic

cannot cast magic with the same type of antimagic present