Files
nethack/include
PatR c0228d1a74 shrinking globs vs shop bill
A shop-owned glob picked up by the hero was added to shop's bill
and if that shrank to nothing it moved from the unpaid portion to
used-up portion as intended.  But once there it retained obj->owt
of 0 and if 'sanity_check' was enabled, that triggered a warning
every move until finally paid for.  Both the 'Ix' list of used-up
items and itemized shop billing revealed a weight of 0 aum if
'wizweight' was enabled.

Keep track of the weight a glob had when it becomes unpaid, then
reset from 0 to that amount if it becomes used-up.  This overloads
the obj->oextra->omid field which is an unsigned int previously
only used for corpses.  Now for globs it is pre-bill obj->owt which
is also unsigned int.  I didn't add new oextra access functions for
it; it is only used in two places and existing omid ones suffice.
2021-11-25 00:47:45 -08:00
..
2021-01-03 13:37:25 -06:00
2021-02-07 22:25:25 -06:00
2020-10-14 09:25:45 -07:00
2021-02-08 00:11:07 -05:00
2021-10-28 12:55:32 -07:00
2021-10-24 18:04:57 -04:00
2021-10-11 13:36:10 -04:00
2021-01-26 21:06:16 -05:00
2021-09-18 19:51:04 -04:00
2019-01-28 10:02:08 +01:00
2021-01-20 22:18:34 -06:00
2020-12-04 09:30:21 +02:00
2021-07-23 10:41:57 -07:00
2021-11-25 00:47:45 -08:00
2021-01-26 21:06:16 -05:00
2021-10-15 15:43:23 -07:00
2021-09-18 19:51:04 -04:00
2020-08-12 16:15:28 -07:00
2021-01-31 14:15:08 -05:00
2021-03-14 15:12:46 -07:00
2021-10-21 08:48:23 -04:00
2021-03-13 18:18:53 -08:00
2021-09-18 19:51:04 -04:00
2021-09-20 09:32:40 -04:00
2021-09-18 19:51:04 -04:00
2021-01-26 10:27:51 -05:00