gi.invalid_obj -> hands_obj

This commit is contained in:
nhmall
2023-11-11 19:49:38 -05:00
parent 47bca92e6c
commit 76d328d86a
15 changed files with 40 additions and 34 deletions

View File

@@ -2719,8 +2719,8 @@ doeat(void)
}
}
/* from floorfood(), &gi.invalid_obj means iron bars at current spot */
if (otmp == &gi.invalid_obj) {
/* from floorfood(), &hands_obj means iron bars at current spot */
if (otmp == &hands_obj) {
/* hero in metallivore form is eating [diggable] iron bars
at current location so skip the other assorted checks;
operates as if digging rather than via the eat occupation */
@@ -3507,7 +3507,7 @@ floorfood(
c = yn_function(qbuf, ynqchars, 'n', TRUE);
}
if (c == 'y')
return &gi.invalid_obj;
return &hands_obj;
else if (c == 'q')
return (struct obj *) 0;
++getobj_else;