From 27b76ffe47eb9649322202a8cf512554c376fe0c Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sun, 10 Feb 2002 16:21:17 +0000 Subject: [PATCH] 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. --- src/detect.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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 */