Crossfire Server, Trunk
|
#include "global.h"
#include <string.h>
#include "ob_methods.h"
#include "ob_types.h"
#include "sounds.h"
#include "sproto.h"
Go to the source code of this file.
Functions | |
void | init_type_lighter (void) |
static method_ret | lighter_type_apply (object *lighter, object *applier, int aflags) |
Implementation of the Lighter class of objects.
Definition in file lighter.c.
void init_type_lighter | ( | void | ) |
Initializer for the LIGHTER object type.
Definition at line 32 of file lighter.c.
References LIGHTER, lighter_type_apply(), and register_apply().
Referenced by register_all_ob_types().
|
static |
Attempts to apply a lighter.
Designed primarily to light torches/lanterns/etc. Also burns up burnable material too. First object in the inventory is the selected object to "burn". -b.t.
lighter | lighter to apply. |
applier | object attempting to apply the lighter. |
aflags | special flags (always apply/unapply). |
Definition at line 52 of file lighter.c.
References do_light(), draw_ext_info(), draw_ext_info_format(), find_marked_object(), liv::food, say::item, obj::last_eat, METHOD_OK, METHOD_UNHANDLED, MSG_TYPE_APPLY, MSG_TYPE_APPLY_ERROR, MSG_TYPE_APPLY_FAILURE, obj::name, NDI_UNIQUE, obj::nrof, object_insert_in_ob(), object_split(), PLAYER, obj::stats, obj::type, and nlohmann::detail::void().
Referenced by init_type_lighter().