U384 - dopay impossible
If you zapped a WoStriking while outside a shop and broke the door and 2 separate objects, the shopkeeper would come out to get paid but if you tried, it would result in "dopay: not to shopkeeper?" due to stolen_value not adding the cost of the 2nd object to the right accumulator.
This commit is contained in:
@@ -2441,7 +2441,13 @@ register boolean peaceful, silent;
|
||||
if(peaceful) {
|
||||
boolean credit_use = !!ESHK(shkp)->credit;
|
||||
value = check_credit(value, shkp);
|
||||
ESHK(shkp)->debit += value;
|
||||
/* 'peaceful' affects general treatment, but doesn't affect
|
||||
* the fact that other code expects that all charges after the
|
||||
* shopkeeper is angry are included in robbed, not debit */
|
||||
if (ANGRY(shkp))
|
||||
ESHK(shkp)->robbed += value;
|
||||
else
|
||||
ESHK(shkp)->debit += value;
|
||||
|
||||
if(!silent) {
|
||||
const char *still = "";
|
||||
|
||||
Reference in New Issue
Block a user