Crossfire Server, Trunk
|
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
Go to the source code of this file.
Functions | |
method_ret | legacy_ob_apply (object *op, object *applier, int aflags) |
Legacy implementation of apply-related methods.
Definition in file apply.cpp.
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().