Make monster destroy armor -spell erode armor first
Instead of outright destroying the armor, the spell will instead first erode the armor. The spell hits 2-4 times, so if it hits the same armor 4 times, it will get destroyed. This does not hit erodeproof armor. Also change the scroll of destroy armor, so that blessed one will destroy a cursed armor, if hero is only wearing that.
This commit is contained in:
@@ -766,7 +766,8 @@ extern struct obj *unchanger(void);
|
||||
extern void reset_remarm(void);
|
||||
extern int doddoremarm(void);
|
||||
extern int remarm_swapwep(void);
|
||||
extern int destroy_arm(struct obj *);
|
||||
extern int disintegrate_arm(struct obj *);
|
||||
extern int destroy_arm(void);
|
||||
extern void adj_abon(struct obj *, schar) NONNULLARG1;
|
||||
extern boolean inaccessible_equipment(struct obj *, const char *, boolean);
|
||||
extern int any_worn_armor_ok(struct obj *);
|
||||
|
||||
@@ -451,6 +451,7 @@ struct obj {
|
||||
#define BURIED_TOO 0x2
|
||||
|
||||
/* object erosion types */
|
||||
#define ERODE_NONE -1
|
||||
#define ERODE_BURN 0
|
||||
#define ERODE_RUST 1
|
||||
#define ERODE_ROT 2
|
||||
|
||||
Reference in New Issue
Block a user