When hallucinating, see hallucinated currencies instead of bits for an ale

This commit is contained in:
Patric Mueller
2020-01-05 00:27:29 +01:00
parent 49ef111bac
commit 9110302d42
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -67,6 +67,7 @@ add 'quick_farsight' option to provide some control over random clairvoyance
where pausing to be able to browse temporarily visible aspects of the where pausing to be able to browse temporarily visible aspects of the
revealed map can seem intrusive; doesn't affect clairvoyance spell revealed map can seem intrusive; doesn't affect clairvoyance spell
replace "money" in in-game texts with "gold" replace "money" in in-game texts with "gold"
when hallucinating, see hallucinated currencies instead of bits for an ale
Platform- and/or Interface-Specific New Features Platform- and/or Interface-Specific New Features
+5 -2
View File
@@ -579,9 +579,12 @@ register struct monst *priest;
if (coaligned && !strayed) { if (coaligned && !strayed) {
long pmoney = money_cnt(priest->minvent); long pmoney = money_cnt(priest->minvent);
if (pmoney > 0L) { if (pmoney > 0L) {
const char *bits;
bits = (Hallucination) ? currency(pmoney)
: (pmoney == 1L) ? "bit" : "bits";
/* Note: two bits is actually 25 cents. Hmm. */ /* Note: two bits is actually 25 cents. Hmm. */
pline("%s gives you %s for an ale.", Monnam(priest), pline("%s gives you %s%s for an ale.", Monnam(priest),
(pmoney == 1L) ? "one bit" : "two bits"); (pmoney == 1L) ? "one " : "two ", bits);
money2u(priest, pmoney > 1L ? 2 : 1); money2u(priest, pmoney > 1L ? 2 : 1);
} else } else
pline("%s preaches the virtues of poverty.", Monnam(priest)); pline("%s preaches the virtues of poverty.", Monnam(priest));