Allow dropping just picked up items

When using a menu to drop or put in items into a container,
allow putting in the item (or items) you picked up previously,
by selecting the 'P' entry from the item class menu

Inspired by the itemcat patch by Stanislav Traykov.

Invalidates saves and bones.
This commit is contained in:
Pasi Kallinen
2021-09-17 20:52:54 +03:00
parent e43ec0cef1
commit b30061b5ad
14 changed files with 183 additions and 30 deletions

View File

@@ -829,6 +829,7 @@ the bless\-ed/\-un\-curs\-ed/\-curs\-ed groups may be typed.\\
{\tt DU} --- drop all objects known to be uncursed.\\
{\tt DC} --- drop all objects known to be cursed.\\
{\tt DX} --- drop all objects of unknown B/U/C status.\\
{\tt DP} --- drop objects picked up last.\\
{\tt Da} --- drop all objects, without asking for confirmation.\\
{\tt Di} --- examine your inventory before dropping anything.\\
{\tt Du} --- drop only unpaid objects (when in a shop).\\
@@ -903,6 +904,7 @@ for potions.\\
{\tt IU} --- list all items known to be uncursed;\\
{\tt IC} --- list all items known to be cursed;\\
{\tt IX} --- list all items whose bless/curse status is unknown;\\
{\tt IP} --- list items picked up last;\\
{\tt I\$} --- count your money.
%.ei
%.ed