From: nethack.allison Date: Sun, 29 Sep 2002 16:41:16 +0000 (+0000) Subject: B12007 yellow light animal parts X-Git-Tag: MOVE2GIT~2402 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d64759dd6c3bbb64bea7a37427bf456f48e2b542;p=nethack B12007 yellow light animal parts Uses "ray" for arm-related parts, "beam" for everything else. --- diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 1e4f78e30..77592a883 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -260,6 +260,7 @@ can no longer activate a figurine while engulfed can't use figurines to get too many erinyes or Nazgul include currently wielded weapon among the list of likely choices for 'w' likewise for currently quivered ammo among choices for 'Q' +prevent mbodypart() from returning animal parts for lights Platform- and/or Interface-Specific Fixes diff --git a/src/polyself.c b/src/polyself.c index 12cdf0533..06f7fce68 100644 --- a/src/polyself.c +++ b/src/polyself.c @@ -1200,6 +1200,12 @@ int part; if (mptr->mlet == S_CENTAUR || mptr->mlet == S_UNICORN || (mptr == &mons[PM_ROTHE] && part != HAIR)) return horse_parts[part]; + if (mptr->mlet == S_LIGHT) { + if (part == HANDED) return "rayed"; + else if (part == ARM || part == FINGER || + part == FINGERTIP || part == HAND) return "ray"; + else return "beam"; + } if (mptr->mlet == S_EEL && mptr != &mons[PM_JELLYFISH]) return fish_parts[part]; if (slithy(mptr) || (mptr->mlet == S_DRAGON && part == HAIR))