Crossfire Server, Trunk
apply.cpp File Reference
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
+ Include dependency graph for apply.cpp:

Go to the source code of this file.

Functions

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

Detailed Description

Legacy implementation of apply-related methods.

Definition in file apply.cpp.

Function Documentation

◆ legacy_ob_apply()

method_ret legacy_ob_apply ( 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.cpp.

References AMULET, apply_container(), apply_special(), ARMOUR, BOOTS, BOW, BRACERS, BUILDER, CLOAK, CLOSE_CON, CONTAINER, GIRDLE, GLOVES, HELMET, METHOD_ERROR, METHOD_OK, METHOD_UNHANDLED, give::op, PLAYER, RING, ROD, SHIELD, SKILL, SKILL_TOOL, object::type, nlohmann::detail::void(), WAND, and WEAPON.

Referenced by init_ob_methods().

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