yet more dropping while inside engulfer
I don't know why we have two different functions which do exactly the same thing (checking whether an item is unpaid or is a container that holds at least one unpaid item), but switch the #H2504 fix to use 'the other one' and reverse one of the changes made when using the inventory one.
This commit is contained in:
6
src/do.c
6
src/do.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 do.c $NHDT-Date: 1545036287 2018/12/17 08:44:47 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.180 $ */
|
||||
/* NetHack 3.6 do.c $NHDT-Date: 1545043771 2018/12/17 10:49:31 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.181 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Derek S. Ray, 2015. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -588,7 +588,7 @@ register struct obj *obj;
|
||||
|
||||
/* doname can call s_suffix, reusing its buffer */
|
||||
Strcpy(monbuf, s_suffix(mon_nam(u.ustuck)));
|
||||
onam_p = ckunpaid(obj) ? yobjnam(obj, (char *) 0) : doname(obj);
|
||||
onam_p = is_unpaid(obj) ? yobjnam(obj, (char *) 0) : doname(obj);
|
||||
You("drop %s into %s %s.", onam_p, monbuf,
|
||||
mbodypart(u.ustuck, STOMACH));
|
||||
}
|
||||
@@ -683,7 +683,7 @@ boolean with_impact;
|
||||
could_grow = (obj->corpsenm == PM_WRAITH);
|
||||
could_heal = (obj->corpsenm == PM_NURSE);
|
||||
}
|
||||
if (ckunpaid(obj))
|
||||
if (is_unpaid(obj))
|
||||
(void) stolen_value(obj, u.ux, u.uy, TRUE, FALSE);
|
||||
(void) mpickobj(u.ustuck, obj);
|
||||
if (is_animal(u.ustuck->data)) {
|
||||
|
||||
Reference in New Issue
Block a user