landmines and boulders
Make pushing a boulder onto a landmine share code with the trap case, resulting in pits, waking sleepers, et al. Don't leave a boulder suspended over the new pit, fill it. Make sure any remaining boulder is placed on top of the pile. If player sets off landmine, monsters killed are credited to/blamed on player.
This commit is contained in:
@@ -137,11 +137,9 @@ moverock()
|
||||
ttmp->madeby_u ? "your" : "a");
|
||||
obj_extract_self(otmp);
|
||||
place_object(otmp, rx, ry);
|
||||
deltrap(ttmp);
|
||||
del_engr_at(rx,ry);
|
||||
scatter(rx,ry, 4,
|
||||
MAY_DESTROY|MAY_HIT|MAY_FRACTURE|VIS_EFFECTS,
|
||||
(struct obj *)0);
|
||||
blow_up_landmine(ttmp);
|
||||
/* if the boulder remains, it should fill the pit */
|
||||
fill_pit(u.ux, u.uy);
|
||||
if (cansee(rx,ry)) newsym(rx,ry);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user