Eliminate erode_obj() and other erosion.
Now all erosion that isn't fire-based goes through `rust_dmg()`
This commit is contained in:
16
src/spell.c
16
src/spell.c
@@ -144,21 +144,7 @@ cursed_book(bp)
|
||||
case 5:
|
||||
pline_The("book was coated with contact poison!");
|
||||
if (uarmg) {
|
||||
if (uarmg->oerodeproof || !is_corrodeable(uarmg)) {
|
||||
Your("gloves seem unaffected.");
|
||||
} else if (uarmg->oeroded2 < MAX_ERODE) {
|
||||
if (uarmg->greased) {
|
||||
grease_protect(uarmg, "gloves", &youmonst);
|
||||
} else {
|
||||
Your("gloves corrode%s!",
|
||||
uarmg->oeroded2+1 == MAX_ERODE ?
|
||||
" completely" : uarmg->oeroded2 ?
|
||||
" further" : "");
|
||||
uarmg->oeroded2++;
|
||||
}
|
||||
} else
|
||||
Your("gloves %s completely corroded.",
|
||||
Blind ? "feel" : "look");
|
||||
rust_dmg(uarmg, "gloves", ERODE_CORRODE, TRUE, TRUE);
|
||||
break;
|
||||
}
|
||||
/* temp disable in_use; death should not destroy the book */
|
||||
|
||||
Reference in New Issue
Block a user