Go to the documentation of this file.
111 object *tool = NULL, *wannabe_tool =
find_marked_object(applier), *unused_tool = NULL;
112 int current_weapon_is_cursed = 0;
114 if (wannabe_tool && ((wannabe_tool->attacktype &
AT_FIRE) || wannabe_tool->type ==
LIGHTER)) {
130 if (
tmp->stats.food > 0)
152 current_weapon_is_cursed = 1;
177 if (applier->
type ==
PLAYER && current_weapon_is_cursed) {
190 if (old_marked == lightable) {
#define QUERY_FLAG(xyz, p)
void register_apply(int ob_type, apply_func method)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) PRINTF_ARGS(6
static method_ret lightable_type_apply(object *lightable, object *applier, int aflags)
int apply_manual(object *op, object *tmp, int aflag)
void do_light(object *item, const char *lighter_name, object *applier)
static uint8_t is_better_lighter(object *current, object *old)
void init_type_lightable(void)
#define MSG_TYPE_APPLY_FAILURE
object * find_marked_object(object *op)
#define FOR_INV_PREPARE(op_, it_)