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

@@ -391,7 +391,7 @@ void
dipfountain(struct obj *obj)
{
int er = ER_NOTHING;
boolean is_hands = (obj == &gi.invalid_obj);
boolean is_hands = (obj == &hands_obj);
if (Levitation) {
floating_above("fountain");
@@ -705,7 +705,7 @@ dipsink(struct obj *obj)
{
boolean try_call = FALSE,
not_looted_yet = (levl[u.ux][u.uy].looted & S_LRING) == 0,
is_hands = (obj == &gi.invalid_obj || (uarmg && obj == uarmg));
is_hands = (obj == &hands_obj || (uarmg && obj == uarmg));
if (!rn2(not_looted_yet ? 25 : 15)) {
/* can't rely on using sink for unlimited scroll blanking; however,