Merge branch 'fix-detect' of https://github.com/argrath/NetHack into NetHack-3.7

This commit is contained in:
nhmall
2024-01-08 23:45:53 -05:00
-2
View File
@@ -367,7 +367,6 @@ gold_detect(struct obj *sobj)
if (!gk.known) { if (!gk.known) {
/* 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) {
char buf[BUFSZ]; char buf[BUFSZ];
if (gy.youmonst.data == &mons[PM_GOLD_GOLEM]) if (gy.youmonst.data == &mons[PM_GOLD_GOLEM])
@@ -386,7 +385,6 @@ gold_detect(struct obj *sobj)
Strcpy(buf, "You feel materially poor."); Strcpy(buf, "You feel materially poor.");
strange_feeling(sobj, buf); strange_feeling(sobj, buf);
}
return 1; return 1;
} }
/* only under me - no separate display required */ /* only under me - no separate display required */