computing cost of stolen container contents
the cost didn't multiply get_cost value by the object quan
This commit is contained in:
@@ -431,6 +431,7 @@ monsters with M3_WANTSBOOK often couldn't move in the Wizard-level
|
|||||||
Vlad should want the Candelabrum
|
Vlad should want the Candelabrum
|
||||||
if you float_down on a trap in which you're already trapped, don't retrap
|
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
|
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
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
@@ -2373,11 +2373,11 @@ register boolean ininv;
|
|||||||
if (!Has_contents(otmp)) {
|
if (!Has_contents(otmp)) {
|
||||||
if(ininv) {
|
if(ininv) {
|
||||||
if(otmp->unpaid)
|
if(otmp->unpaid)
|
||||||
price += get_cost(otmp, shkp);
|
price += otmp->quan * get_cost(otmp, shkp);
|
||||||
} else {
|
} else {
|
||||||
if(!otmp->no_charge) {
|
if(!otmp->no_charge) {
|
||||||
if(otmp->oclass != FOOD_CLASS || !otmp->oeaten)
|
if(otmp->oclass != FOOD_CLASS || !otmp->oeaten)
|
||||||
price += get_cost(otmp, shkp);
|
price += otmp->quan * get_cost(otmp, shkp);
|
||||||
}
|
}
|
||||||
otmp->no_charge = 0;
|
otmp->no_charge = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user