From the NannyMUD documentation
2001-09-29
wear_hooks - Hooks for wearing.
/obj/living_functions
Any object can use hooks.
wear_hook block_wear_hook value_wear_hook
If block_wear_hook returns 1 the armour wont be worn. After this wear_hook is called. And each time a call to calc_armour_class() is done the value_wear_hook is run.
The current class is later divided with 3 to get the armour class.
wield_hook in hooks/wield_hook
NAME
wear_hook - Wear hookSYNTAX
void wear_hook(mixed arr, object living)DESCRIPTION
The arguments to the hook are as follows: ({The armour type, The object being worn}), The living doing the wearing
FUNCTION
NAME
block_wear_hook - Block wear hookSYNTAX
int block_wear_hook(mixed arr, object living)DESCRIPTION
If block_wear_hook returns 1 the armour won't be worn. The arguments to the hook are as follows: ({The armour type, The object being worn}), The living doing the wearingRETURN VALUES
int, if 1 then the armour won't be worn
FUNCTION
NAME
value_wear_hook - Value wear hookSYNTAX
int value_wear_hook(mixed arr, object living)DESCRIPTION
Each time a call to calc_armour_class() is done, the value_wear_hook is run. The arguments to the hook are as follows: ({ Mapping with all worn armours, The current class.}), The living doing the wearingRETURN VALUES
int, the class of the armourNOTE
The current class is later divided with 3 to get the armour class.