From d5c45a19e03d306f9e2245f1c22f9ef15ce17330 Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Fri, 13 Oct 2023 23:33:25 +0200 Subject: [PATCH] Weapons of rage auto-identify on wielding. Credit to mobileuser and Umbire for the wielding messages. --- src/wield.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/wield.c b/src/wield.c index 3aa8b2149..9e58b0e40 100644 --- a/src/wield.c +++ b/src/wield.c @@ -283,6 +283,12 @@ register struct obj *obj; Your("%s suppresses your fear with rage!", xname(uwep)); context.botl = 1; uwep->oprops_known |= ITEM_RAGE; + } else if (!(uwep->oprops_known & ITEM_RAGE)) { + if (!Blind) + You_feel("a red mist descending on you!"); + else + You_feel("like magma is coursing through your veins!"); + uwep->oprops_known |= ITEM_RAGE; } EFearless |= W_WEP; } @@ -662,6 +668,12 @@ register struct obj *obj; Your("%s suppresses your fear with rage!", xname(uwep)); context.botl = 1; uswapwep->oprops_known |= ITEM_RAGE; + } else if (!(uwep->oprops_known & ITEM_RAGE)) { + if (!Blind) + You_feel("a red mist descending on you!"); + else + You_feel("like magma is coursing through your veins!"); + uwep->oprops_known |= ITEM_RAGE; } EFearless |= W_SWAPWEP; }