Crossfire Server, Trunk  R22010
apply.c File Reference
#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.


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

Detailed Description

Legacy implementation of apply-related methods.

Definition in file apply.c.

Function Documentation

◆ legacy_ob_apply()

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 apply_container(), apply_special(), METHOD_ERROR, METHOD_OK, and METHOD_UNHANDLED.

Referenced by init_ob_methods().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: