Files
nethack/include
PatR a06f5ec494 multiple gold stacks in invent
The pull request that fixed a couple of instances where it was
possible to have multiple entries for gold in inventory indirectly
pointed out that the error checking was clumsy.  If you executed
the #adjust command while having two '$' items in inventory, you
were told twice that you had multiple stacks of gold in inventory.
Change how that's handled so that the warning appears at most once
for any given #adjust command.  Also avoids having #adjust's use
of getobj() re-scan entire invent for every item in invent.

Also, if player did manage to get two or more '$' entries, #adjust
would allow moving any but the last to a letter entry.  Once in a
letter, further #adjust with count specified could split the letter
gold entries into even more gold entries.  Now, if the player picks
gold as the #adjust 'from' item (which is only possible when there
are wrong letter gold entries or multiple ones or both) then #adjust
will now force 'to' slot to be '$' (without asking player to pick).

Lastly, the inventory check for multiple and/or wrong slot gold is
now performed by wizard mode sanity_check() in addition to #adjust.
2021-03-17 10:36:42 -07: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
2020-09-28 16:25:31 -04:00
2021-01-23 15:02:11 -08:00
2021-02-08 00:11:07 -05:00
2021-01-26 21:06:16 -05:00
2020-11-13 20:27:17 +02:00
2021-03-17 10:36:42 -07:00
2021-02-10 17:06:12 +02:00
2020-01-29 10:29:37 -05:00
2021-01-26 21:06:16 -05:00
2021-03-10 12:28:09 -08:00
2021-01-31 13:58:19 -05:00
2019-01-28 10:02:08 +01:00
2021-01-20 22:18:34 -06:00
2021-01-26 21:06:16 -05:00
2020-12-04 09:30:21 +02:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-03-13 18:18:53 -08:00
2021-02-19 17:28:43 +02:00
2020-12-13 10:27:49 -05:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-31 09:20:25 -05:00
2020-08-12 16:15:28 -07:00
2021-01-26 21:06:16 -05:00
2021-01-26 21:06:16 -05:00
2021-01-31 14:15:08 -05:00
2021-03-14 15:12:46 -07:00
2020-12-08 12:58:36 -08:00
2021-01-31 12:49:22 -05:00
2021-03-13 18:18:53 -08:00
2021-03-13 18:18:53 -08:00
2021-03-13 18:17:00 -08:00
2021-03-13 18:18:53 -08:00
2021-03-16 09:13:55 -07:00
2021-01-26 10:27:51 -05:00