YAFMs when trying to pick up terrain features
This commit is contained in:
14
src/hack.c
14
src/hack.c
@@ -2207,7 +2207,19 @@ dopickup()
|
||||
}
|
||||
}
|
||||
if (!OBJ_AT(u.ux, u.uy)) {
|
||||
There("is nothing here to pick up.");
|
||||
register struct rm *lev = &levl[u.ux][u.uy];
|
||||
if (IS_THRONE(lev->typ))
|
||||
pline("It must weigh%s a ton!",
|
||||
lev->looted ? " almost" : "");
|
||||
else if (IS_SINK(lev->typ))
|
||||
pline_The("plumbing connects it to the floor.");
|
||||
else if (IS_GRAVE(lev->typ))
|
||||
You("don't need a gravestone. Yet.");
|
||||
else if (IS_FOUNTAIN(lev->typ))
|
||||
You("could drink the water...");
|
||||
else if (IS_DOOR(lev->typ) && (lev->doormask & D_ISOPEN))
|
||||
pline("It won't come off the hinges.");
|
||||
else There("is nothing here to pick up.");
|
||||
return 0;
|
||||
}
|
||||
if (!can_reach_floor(TRUE)) {
|
||||
|
||||
Reference in New Issue
Block a user