1
0
Fork 0
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:
demogorgon22 2021-01-17 15:00:01 -05:00
parent fb254d1527
commit 7a96b021d0

View file

@ -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;
}