Go to the documentation of this file.
61 int oldmagic = armour->
magic;
65 "This armour can not be enchanted any further.");
76 "This armour will not accept further enchantment.");
90 "You can't enchant this armour without unapplying it because it would consume your soul!");
111 if (armour->
weight <= 0) {
112 LOG(
llevInfo,
"Warning: enchanted armours can have negative weight\n.");
154 "Something blocks the magic of the scroll.");
160 "You need to mark an armor object.");
171 "Your marked item is not armour!");
176 "Applying armour enchantment.");
void set_abs_magic(object *op, int magic)
void LOG(LogLevel logLevel, const char *format,...)
#define QUERY_FLAG(xyz, p)
void register_apply(int ob_type, apply_func method)
void fix_object(object *op)
void init_type_armour_improver(void)
object * object_insert_in_ob(object *op, object *where)
#define object_decrease_nrof_by_one(xyz)
#define MSG_TYPE_APPLY_SUCCESS
static void improve_armour(object *op, object *improver, object *armour)
int get_map_flags(mapstruct *oldmap, mapstruct **newmap, int16_t x, int16_t y, int16_t *nx, int16_t *ny)
object * object_split(object *orig_ob, uint32_t nr, char *err, size_t size)
void esrv_update_item(int flags, object *pl, object *op)
int apply_special(object *who, object *op, int aflags)
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
static method_ret armour_improver_type_apply(object *lighter, object *applier, int aflags)
#define MSG_TYPE_APPLY_ERROR
object * find_marked_object(object *op)