pull request #1237 - bill_dummy_object() is

overcharging when using up a stack instead of single item

Pull request by entrez:  shop bill was being inflated by item count
if more that one unpaid item got used up at once.  Lighting N unpaid
candles charged N * N * single_candle_price instead of the intended
N * single_candle_price.

This PR was in response to issue #1236 by Xdminsy:  usage fees for
applying more unpaid candles are multiplied by amount once more.

Closes #1237
Closes #1236
This commit is contained in:
PatR
2024-04-27 23:20:27 -07:00
parent b662134eba
commit 37a7e62be5

View File

@@ -1406,6 +1406,9 @@ when engraving with a stack of cursed weapons, treat it differently if that
stack is welded to hero's hand: write in dust and leave whole stack
welded rather than split one off stack to engrave on floor
hero or monster didn't fall into pit if water at the location was boiled away
shopkeepers magnified the cost of shop items used up as a group; normally
using an item splits 1 from its stack, but applying a stack of N
candles to light them all charged N * N * single_candle_price
Fixes to 3.7.0-x General Problems Exposed Via git Repository