fix problem with earlier change for gold detection.

This commit is contained in:
nethack.allison
2002-02-10 19:47:09 +00:00
parent 3983318242
commit 677b3943dd
+9 -5
View File
@@ -206,17 +206,21 @@ register struct obj *sobj;
/* no gold found on floor or monster's inventory. /* no gold found on floor or monster's inventory.
adjust message if you have gold in your inventory */ adjust message if you have gold in your inventory */
if (sobj) { if (sobj) {
if (youmonst.data == &mons[PM_GOLD_GOLEM]) char buf[BUFSZ];
You_feel("like a million %s!", currency(2L)); if (youmonst.data == &mons[PM_GOLD_GOLEM]) {
else if (hidden_gold() || Sprintf(buf, "You feel like a million %s!",
currency(2L));
} else if (sobj && hidden_gold() ||
#ifndef GOLDOBJ #ifndef GOLDOBJ
u.ugold) u.ugold)
#else #else
money_cnt(invent)) money_cnt(invent))
#endif #endif
You("worry about your future financial situation."); Strcpy(buf,
"You feel worried about your future financial situation.");
else else
strange_feeling(sobj, "You feel materially poor."); Strcpy(buf, "You feel materially poor.");
strange_feeling(sobj, buf);
} }
return(1); return(1);
} }