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)
static uint8_t is_better_lighter(object *new, object *old)
int apply_manual(object *op, object *tmp, int aflag)
struct obj * current_weapon
static method_ret lightable_type_apply(object *lightable, object *applier, int aflags)
void register_apply(int ob_type, apply_func method)
void do_light(object *item, const char *lighter_name, object *applier)
#define MSG_TYPE_APPLY_FAILURE
void init_type_lightable(void)
object * find_marked_object(object *op)
#define FOR_INV_PREPARE(op_, it_)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...)