shk.c menu-pay comments

This commit is contained in:
PatR
2024-06-28 09:04:55 -07:00
parent 17e0385f0e
commit 02ddbf001b
+8 -7
View File
@@ -5,11 +5,12 @@
#include "hack.h" #include "hack.h"
/* CONTAINED_BUYING: for itemized billing (including default menu for /* CONTAINED_BUYING: for itemized billing (including default menu for 'p'),
'p'), unpaid items in containers are concealed from itemized billing; unpaid items in containers are concealed whether or not its has been
there's a single price for the container and all its contents; flagged as contents-known; there's a single price for the container and
player must pay all-or-nothing for such, and all used up items have all its contents
to already be paid for */ [TODO: player must pay all-or-nothing for such, and all used up items
have to already be paid for] */
/*#define CONTAINED_BUYING*/ /**** not fully implemented yet ****/ /*#define CONTAINED_BUYING*/ /**** not fully implemented yet ****/
#define PAY_SOME 2 #define PAY_SOME 2
@@ -1453,7 +1454,7 @@ cheapest_item(int ibillct, Bill *ibill)
staticfn int /* returns number of entries */ staticfn int /* returns number of entries */
make_itemized_bill( make_itemized_bill(
struct monst *shkp, struct monst *shkp,
Bill **ibill_p) /* output, a 'sortloot array' */ Bill **ibill_p) /* output, augmented bill similar to a 'sortloot array' */
{ {
static Bill zerosbi; /* Null sortbill item */ static Bill zerosbi; /* Null sortbill item */
Bill *ibill; Bill *ibill;
@@ -2068,7 +2069,7 @@ pay_billed_items(
if (itemize) if (itemize)
bot(); bot();
/* remove from eshkp->bill+p[] unless this was the used up portion /* remove from eshkp->bill_p[] unless this was the used up portion
of partly used up item (since removal would take out both; note: of partly used up item (since removal would take out both; note:
can't buy PartlyIntact until PartlyUsedUp has been paid for) */ can't buy PartlyIntact until PartlyUsedUp has been paid for) */
if (ibill[indx].usedup == PartlyUsedUp) { if (ibill[indx].usedup == PartlyUsedUp) {