add non-controversial part of <Someone>'s "unpaid prices in inventory."

This commit is contained in:
nethack.allison
2002-02-17 14:42:48 +00:00
parent 06b7862906
commit 839947d423
2 changed files with 6 additions and 2 deletions

View File

@@ -530,6 +530,7 @@ add Tom Friedetzky's BUC-patch with some alterations to the original
add wizard #poly and #levelchange (originally levelgain; Dylan O'Donnell),
add Jason Short's additional lenses use patch
add new Gnomish Mines levels from Kelly Bailey's patch
add Ken Arnold's patch to show unpaid item prices in inventory
jousting by players wielding a lance while riding
Knights start with lance rather than spear
can start game without a pet via pettype:none (Dylan O'Donnell)

View File

@@ -747,8 +747,11 @@ ring:
Strcat(bp, " (alternate weapon; not wielded)");
}
if(obj->owornmask & W_QUIVER) Strcat(bp, " (in quiver)");
if(obj->unpaid)
Strcat(bp, " (unpaid)");
if(obj->unpaid) {
long quotedprice = unpaid_cost(obj);
Sprintf(eos(bp), " (unpaid, %ld %s)",
quotedprice, currency(quotedprice));
}
if (!strncmp(prefix, "a ", 2) &&
index(vowels, *(prefix+2) ? *(prefix+2) : *bp)
&& (*(prefix+2) || (strncmp(bp, "uranium", 7)