From d64759dd6c3bbb64bea7a37427bf456f48e2b542 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sun, 29 Sep 2002 16:41:16 +0000 Subject: [PATCH] B12007 yellow light animal parts Uses "ray" for arm-related parts, "beam" for everything else. --- doc/fixes34.1 | 1 + src/polyself.c | 6 ++++++ 2 files changed, 7 insertions(+) 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)) -- 2.40.0