Skip to content

Commit

Permalink
Prevent the Book of the Dead from being destroyed when falling into (…
Browse files Browse the repository at this point in the history
…or walking over) lava without fire resistance.
  • Loading branch information
sgrunt committed Apr 14, 2012
1 parent 14e2d7f commit a9267e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -4438,6 +4438,12 @@ lava_effects()
for(obj = invent; obj; obj = obj2) {
obj2 = obj->nobj;
if(is_organic(obj) && !obj->oerodeproof) {
if (obj->otyp == SPE_BOOK_OF_THE_DEAD) {
if (!Blind)
pline("%s glows a strange %s, but remains intact.",
The(xname(obj)), hcolor("dark red"));
continue;
}
if(obj->owornmask) {
if (usurvive)
Your("%s into flame!", aobjnam(obj, "burst"));
Expand Down

0 comments on commit a9267e4

Please sign in to comment.