fix #H1803 - levitating at floor level...
From a bug report, being stuck in the floor or in lava and trying to move downwards while levitating gave "you are floating high above the floor/lava" which contradicts being stuck. Now you'll get "you are trapped in the floor/lava" in that situation. I thought about letting it fall through to the chance to autodig with wielded pick, but decided to go with just the alternate message. (Being tethered to a buried iron ball still lets you "float high above the floor", so this doesn't check for being trapped that way.)
This commit is contained in:
7
src/do.c
7
src/do.c
@@ -764,11 +764,10 @@ dodown()
|
||||
|
||||
for(obj = invent; obj; obj = obj->nobj) {
|
||||
if (obj->oartifact &&
|
||||
artifact_has_invprop(obj,LEVITATION)) {
|
||||
artifact_has_invprop(obj, LEVITATION)) {
|
||||
if (obj->age < monstermoves)
|
||||
obj->age = monstermoves + rnz(100);
|
||||
else
|
||||
obj->age += rnz(100);
|
||||
obj->age = monstermoves;
|
||||
obj->age += rnz(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user