Crossfire Server, Trunk  R20513
Functions
apply.c File Reference

Legacy implementation of apply-related methods. More...

#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
Include dependency graph for apply.c:

Go to the source code of this file.

Functions

method_ret legacy_ob_apply (ob_methods *context, object *op, object *applier, int aflags)
 Main apply handler. More...
 

Detailed Description

Legacy implementation of apply-related methods.

Definition in file apply.c.

Function Documentation

method_ret legacy_ob_apply ( ob_methods context,
object op,
object applier,
int  aflags 
)

Main apply handler.

Checks for unpaid items before applying.

Return value: 0: player or monster can't apply objects of that type 1: has been applied, or there was an error applying the object 2: objects of that type can't be applied if not in inventory

op is the object that is causing object to be applied, tmp is the object being applied.

aflag is special (always apply/unapply) flags. Nothing is done with them in this function - they are passed to apply_special

Definition at line 49 of file apply.c.

References AMULET, apply_special(), ARMOUR, BOOTS, BOW, BRACERS, BUILDER, CLOAK, CLOSE_CON, CONTAINER, obj::env, GIRDLE, GLOVES, HELMET, legacy_apply_container(), METHOD_ERROR, METHOD_OK, METHOD_UNHANDLED, PLAYER, RING, ROD, SHIELD, SKILL, SKILL_TOOL, obj::type, WAND, and WEAPON.

Referenced by init_ob_methods().

Here is the call graph for this function:

Here is the caller graph for this function: