53 tag_t op_tag = op->count, applier_tag = applier->count;
56 if (applier->type == PLAYER) {
69 "The chest was empty.");
78 if (!treas->invisible) {
81 "You find %s in the %s.",
82 name, container_name);
88 && (treas->type == RUNE || treas->type == TRAP)
96 if (object_was_destroyed(applier, applier_tag) || object_was_destroyed(op, op_tag))
100 if (!object_was_destroyed(op, op_tag) && op->inv == NULL)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...)
void spring_trap(object *trap, object *victim)
#define MSG_TYPE_APPLY_FAILURE
void init_type_treasure(void)
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
object * object_insert_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
static method_ret treasure_type_apply(ob_methods *context, object *op, object *applier, int aflags)
void register_apply(int ob_type, apply_func method)
#define QUERY_FLAG(xyz, p)
#define object_decrease_nrof_by_one(xyz)
#define MSG_TYPE_APPLY_SUCCESS
void query_name(const object *op, char *buf, size_t size)
void object_remove(object *op)