54 static void do_turn(
object *op,
object *who,
int aflags,
const char *onoff) {
59 "You turn %s your %s.",
80 if (!(aflags&AP_NOPRINT))
82 "Oops, it feels deadly cold!", NULL);
113 "You must get it first!\n", NULL);
123 do_turn(lamp, applier, aflags,
"off");
128 "Your %s is out of fuel!",
133 do_turn(lamp, applier, aflags,
"on");
#define MSG_TYPE_APPLY_FAILURE
void draw_ext_info(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *message, const char *oldmessage)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8 type, uint8 subtype, const char *new_format, const char *old_format,...)
static method_ret lamp_type_apply(ob_methods *context, object *lighter, object *applier, int aflags)
struct archt * other_arch
void init_type_lamp(void)
void remove_ob(object *op)
object * get_player_container(object *op)
void update_all_los(const mapstruct *map, int x, int y)
void update_position(mapstruct *m, int x, int y)
static void do_turn(object *op, object *who, int aflags, const char *onoff)
void register_apply(int ob_type, apply_func method)
#define QUERY_FLAG(xyz, p)
#define CLEAR_FLAG(xyz, p)
object * insert_ob_in_ob(object *op, object *where)
#define FLAG_KNOWN_CURSED
#define MSG_TYPE_APPLY_CURSED
#define SET_MAP_FLAGS(M, X, Y, C)
#define MSG_TYPE_APPLY_SUCCESS
#define MSG_TYPE_APPLY_ERROR
object * get_split_ob(object *orig_ob, uint32 nr, char *err, size_t size)
void free_object(object *ob)
void fix_object(object *op)
object * arch_to_object(archetype *at)