From: nethack.allison Date: Sun, 10 Feb 2002 16:21:17 +0000 (+0000) Subject: B5008 feeling "materially poor" while rich X-Git-Tag: MOVE2GIT~3215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27b76ffe47eb9649322202a8cf512554c376fe0c;p=nethack B5008 feeling "materially poor" while rich Shouldn't gold detection pay attention to my inventory? "You feel materially poor" sounds extremely odd if I've got 50,000 zorkmids stuffed in my backpack. --- diff --git a/src/detect.c b/src/detect.c index 190096df9..e9944adbb 100644 --- a/src/detect.c +++ b/src/detect.c @@ -203,8 +203,21 @@ register struct obj *sobj; } if (!known) { - /* no gold found */ - if (sobj) strange_feeling(sobj, "You feel materially poor."); + /* no gold found on floor or monster's inventory. + adjust message if you have gold in your inventory */ + if (sobj) { + if (youmonst.data == &mons[PM_GOLD_GOLEM]) + You_feel("like a million %s!", currency(2L)); + else if (sobj && hidden_gold() || +#ifndef GOLDOBJ + u.ugold) +#else + money_cnt(invent)) +#endif + You("worry about your future financial situation."); + else + strange_feeling(sobj, "You feel materially poor."); + } return(1); } /* only under me - no separate display required */