mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-07-31 01:42:24 +01:00
Add flung lava burning nearby doors.
This commit is contained in:
parent
fb254d1527
commit
7a96b021d0
1 changed files with 17 additions and 0 deletions
|
@ -823,6 +823,23 @@ boolean from_invent;
|
|||
break;
|
||||
case BALL_OF_WEBBING:
|
||||
dowebgush(x,y, obj->ovar1 ? obj->ovar1 : 2);
|
||||
break;
|
||||
case LAVA_BALL:
|
||||
for(int tx = x-1; tx <= x+1;tx++){
|
||||
for(int ty = y-1; ty <= y+1; ty++){
|
||||
if(!isok(tx,ty)) continue;
|
||||
//pline("%d",levl[tx][ty].typ);
|
||||
if(closed_door(tx,ty)){
|
||||
struct rm *lev = &levl[tx][ty];
|
||||
lev->doormask = D_NODOOR;
|
||||
unblock_point(tx,ty);
|
||||
if(cansee(tx,ty)){
|
||||
pline("The door burns to a crisp due to nearby heat!");
|
||||
newsym(tx,ty);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue