From the NannyMUD documentation

LAST CHANGE

2001-09-29

NAME

        wear_hooks - Hooks for wearing.

LOCATION

    /obj/living_functions

AVAILABILITY

    Any object can use hooks.

FUNCTIONS

OTHER FUNCTIONS

    wear_hook
    block_wear_hook
    value_wear_hook

DESCRIPTION

    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.

NOTE

    The current class is later divided with 3 to get the armour class.

SEE ALSO

        wield_hook in hooks/wield_hook

FUNCTION


NAME

        wear_hook - Wear hook

SYNTAX

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 hook

SYNTAX

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 wearing

RETURN VALUES

int, if 1 then the armour won't be worn

FUNCTION


NAME

        value_wear_hook - Value wear hook

SYNTAX

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 wearing

RETURN VALUES

int, the class of the armour

NOTE

    The current class is later divided with 3 to get the armour class.