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

magic

Vars

ammo_typeWhat kind of projectile do we fire?
antimagic_flagsWhat kind of antimagic resists this
charge_timerHow much have we currently recharged?
chargesHow many charges do we currently have
max_chargesHow many charges can we hold at most
no_den_usageIf set to TRUE, wizards can't use this until they leave home
pitch_with_chargesIf true, our fire sound gets lower as our charges decrease
recharge_rateHow fast do we recharge charges? In seconds
schoolWhat kind of magic is this
self_chargingWhether this wand/staff recharges on its own over time.

Procs

can_user_shootReturns true if specified mob can fire this weapon
do_suicideExtend to do something funny
on_magic_chargeSignal proc for COMSIG_ITEM_MAGICALLY_CHARGED

Var Details

ammo_type

What kind of projectile do we fire?

antimagic_flags

What kind of antimagic resists this

charge_timer

How much have we currently recharged?

charges

How many charges do we currently have

max_charges

How many charges can we hold at most

no_den_usage

If set to TRUE, wizards can't use this until they leave home

pitch_with_charges

If true, our fire sound gets lower as our charges decrease

recharge_rate

How fast do we recharge charges? In seconds

school

What kind of magic is this

self_charging

Whether this wand/staff recharges on its own over time.

Proc Details

can_user_shoot

Returns true if specified mob can fire this weapon

do_suicide

Extend to do something funny

on_magic_charge

Signal proc for COMSIG_ITEM_MAGICALLY_CHARGED

Adds uses to wands or staffs.