From: cohrs Date: Fri, 15 Feb 2002 05:12:38 +0000 (+0000) Subject: computing cost of stolen container contents X-Git-Tag: MOVE2GIT~3171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7345561da8841ec6bf452a92abe499502f3b412c;p=nethack computing cost of stolen container contents the cost didn't multiply get_cost value by the object quan --- diff --git a/doc/fixes34.0 b/doc/fixes34.0 index e203b3d35..69e350a18 100644 --- a/doc/fixes34.0 +++ b/doc/fixes34.0 @@ -431,6 +431,7 @@ monsters with M3_WANTSBOOK often couldn't move in the Wizard-level Vlad should want the Candelabrum if you float_down on a trap in which you're already trapped, don't retrap applying whip toward hidden mimic displays mimic name before "Wait!" message +stealing a container didn't multiply cost of stolen contained objects by quan Platform- and/or Interface-Specific Fixes diff --git a/src/shk.c b/src/shk.c index 11b0286f6..12cb34989 100644 --- a/src/shk.c +++ b/src/shk.c @@ -2373,11 +2373,11 @@ register boolean ininv; if (!Has_contents(otmp)) { if(ininv) { if(otmp->unpaid) - price += get_cost(otmp, shkp); + price += otmp->quan * get_cost(otmp, shkp); } else { if(!otmp->no_charge) { if(otmp->oclass != FOOD_CLASS || !otmp->oeaten) - price += get_cost(otmp, shkp); + price += otmp->quan * get_cost(otmp, shkp); } otmp->no_charge = 0; }