[Package Index | Mudlib Index | Effect Index]
File /std/armour_logic.c
This handles the basic logic of armour class etc.
Includes
This class includes the following files /include/weapon_old.hMethod index
- add_ac(string, string, mixed)
Add an armour class for an attack type.
- query_ac(string, int, string)
Find out the amount of damage that is stopped.
- remove_ac(string)
Remove a previously added armour class.
Public Functions
These are functions that everyone can access.
.
int add_ac(string name,
string type,
mixed a_c)
Add an armour class for an attack type.
- Parameters:
name - Armour class name
type - Damage type
a_c - armour class
- Returns:
0 or 1 for failure or success
varargs int query_ac(string type,
int dam,
string zone)
Find out the amount of damage that is stopped.
NOTE: Calling this function causes damage to the armour!