B12007 yellow light animal parts

Uses "ray" for arm-related parts, "beam" for everything else.
This commit is contained in:
nethack.allison
2002-09-29 16:41:16 +00:00
parent 737294a517
commit d64759dd6c
2 changed files with 7 additions and 0 deletions

View File

@@ -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

View File

@@ -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))