computing cost of stolen container contents

the cost didn't multiply get_cost value by the object quan
This commit is contained in:
cohrs
2002-02-15 05:12:38 +00:00
parent fe4f8b3c9d
commit 7345561da8
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
}