Make GOLDOBJ unconditional.
This commit is contained in:
27
src/priest.c
27
src/priest.c
@@ -539,20 +539,6 @@ register struct monst *priest;
|
||||
priest->mpeaceful = 0;
|
||||
return;
|
||||
}
|
||||
#ifndef GOLDOBJ
|
||||
if(!u.ugold) {
|
||||
if(coaligned && !strayed) {
|
||||
if (priest->mgold > 0L) {
|
||||
/* Note: two bits is actually 25 cents. Hmm. */
|
||||
pline("%s gives you %s for an ale.", Monnam(priest),
|
||||
(priest->mgold == 1L) ? "one bit" : "two bits");
|
||||
if (priest->mgold > 1L)
|
||||
u.ugold = 2L;
|
||||
else
|
||||
u.ugold = 1L;
|
||||
priest->mgold -= u.ugold;
|
||||
context.botl = 1;
|
||||
#else
|
||||
if(!money_cnt(invent)) {
|
||||
if(coaligned && !strayed) {
|
||||
long pmoney = money_cnt(priest->minvent);
|
||||
@@ -561,7 +547,6 @@ register struct monst *priest;
|
||||
pline("%s gives you %s for an ale.", Monnam(priest),
|
||||
(pmoney == 1L) ? "one bit" : "two bits");
|
||||
money2u(priest, pmoney > 1L ? 2 : 1);
|
||||
#endif
|
||||
} else
|
||||
pline("%s preaches the virtues of poverty.", Monnam(priest));
|
||||
exercise(A_WIS, TRUE);
|
||||
@@ -577,11 +562,7 @@ register struct monst *priest;
|
||||
verbalize("Thou shalt regret thine action!");
|
||||
if(coaligned) adjalign(-1);
|
||||
} else if(offer < (u.ulevel * 200)) {
|
||||
#ifndef GOLDOBJ
|
||||
if(u.ugold > (offer * 2L)) verbalize("Cheapskate.");
|
||||
#else
|
||||
if(money_cnt(invent) > (offer * 2L)) verbalize("Cheapskate.");
|
||||
#endif
|
||||
else {
|
||||
verbalize("I thank thee for thy contribution.");
|
||||
/* give player some token */
|
||||
@@ -589,11 +570,7 @@ register struct monst *priest;
|
||||
}
|
||||
} else if(offer < (u.ulevel * 400)) {
|
||||
verbalize("Thou art indeed a pious individual.");
|
||||
#ifndef GOLDOBJ
|
||||
if(u.ugold < (offer * 2L)) {
|
||||
#else
|
||||
if(money_cnt(invent) < (offer * 2L)) {
|
||||
#endif
|
||||
if (coaligned && u.ualign.record <= ALGN_SINNED)
|
||||
adjalign(1);
|
||||
verbalize("I bestow upon thee a blessing.");
|
||||
@@ -614,11 +591,7 @@ register struct monst *priest;
|
||||
} else u.ublessed++;
|
||||
} else {
|
||||
verbalize("Thy selfless generosity is deeply appreciated.");
|
||||
#ifndef GOLDOBJ
|
||||
if(u.ugold < (offer * 2L) && coaligned) {
|
||||
#else
|
||||
if(money_cnt(invent) < (offer * 2L) && coaligned) {
|
||||
#endif
|
||||
if(strayed && (moves - u.ucleansed) > 5000L) {
|
||||
u.ualign.record = 0; /* cleanse thee */
|
||||
u.ucleansed = moves;
|
||||
|
||||
Reference in New Issue
Block a user