unpaid object: sanity check, teleporting, 'I u'
It turns out that there are some objects marked unpaid that aren't carried by the hero, so the recent sanity check for unpaid/no_charge could complain. Unpaid items dropped on the shop boundary (gap in shop wall, doorway, shk's free spot) stayed unpaid when dropped onto the floor, similar to recent change for pushed shop-owned boulders. Don't give sanity complaints for those. They could be all the way inside a shop too, where unpaid items in a gap in the shop wall got pushed into the shop when the wall was repaired. (Possibly those should come off the bill instead of remaining unpaid.) Teleporting items out of a shop was marking them unpaid instead of treating that as robbery. That's a bug caught by the sanity check. rloco() was also marking shop items which got teleported from one spot inside the shop to another spot inside the same shop as unpaid. Fix both of those things. Also, if an unpaid item on the boundary gets teleported all the way inside, take it off the bill. Change 'I u' to mention whether there are additional unpaid items on the floor somewhere since they won't be part of unpaid inventory and they're not on the used-up bill either. It might occasionally help the player figure out why the shopkeeper won't let the hero out of the shop.
This commit is contained in:
@@ -1058,6 +1058,8 @@ when hero hears an unseen monster reading a scroll, only describe the monster
|
||||
acccurately if hero is not hallucinating and monster is same species
|
||||
as hero's current form
|
||||
don't allow monsters to disarm hero with bullwhip if hero is engulfed
|
||||
teleporting an object out of a shop put it on the shop bill instead of dealing
|
||||
with robbery
|
||||
|
||||
|
||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||
@@ -1883,6 +1885,8 @@ very large humanoids can wear mummy wrappings
|
||||
for ranger characters, shooting any type of arrow while wielding the Longbow
|
||||
of Diana gets an extra +1 to multi-shot
|
||||
change the #vanquished command from debug-only to general user command
|
||||
have 'I u' mention whether there are any unpaid items on the floor (unusual
|
||||
but not impossible); it doesn't itemize them or show shop price
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific New Features
|
||||
|
||||
Reference in New Issue
Block a user