From: cohrs Date: Sat, 30 Mar 2002 21:16:34 +0000 (+0000) Subject: bird_parts for ravens X-Git-Tag: MOVE2GIT~2852 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4c5af0088b75e45bfd0214720febbcc7be6e501;p=nethack bird_parts for ravens - ravens need special parts, actual bats are still best handled by animal_parts --- diff --git a/doc/fixes34.1 b/doc/fixes34.1 index b106bacaa..f48ae7698 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -37,6 +37,7 @@ polymorphing into a form that cannot twoweapon should immediately disable twoweapon mode taking partial count of merged objects from a container while your pack was full split the object and did not re-merge +animal_parts are not always appropriate for ravens Platform- and/or Interface-Specific Fixes diff --git a/src/polyself.c b/src/polyself.c index c909a50ec..d05437a7c 100644 --- a/src/polyself.c +++ b/src/polyself.c @@ -1109,6 +1109,10 @@ int part; "rear claw", "foreclaw", "clawed", "head", "rear limb", "light headed", "neck", "spine", "rear claw tip", "fur", "blood", "lung", "nose", "stomach" }, + *bird_parts[] = { "wing", "eye", "face", "wing", "wing tip", + "foot", "wing", "winged", "head", "leg", + "light headed", "neck", "spine", "toe", + "feathers", "blood", "lung", "bill", "stomach" }, *horse_parts[] = { "foreleg", "eye", "face", "forehoof", "hoof tip", "rear hoof", "foreclaw", "hooved", "head", "rear leg", "light headed", "neck", "backbone", "rear hoof tip", @@ -1169,6 +1173,8 @@ int part; (part == ARM || part == FINGER || part == FINGERTIP || part == HAND || part == HANDED)) return humanoid_parts[part]; + if (mptr == &mons[PM_RAVEN]) + return bird_parts[part]; if (mptr->mlet == S_CENTAUR || mptr->mlet == S_UNICORN || (mptr == &mons[PM_ROTHE] && part != HAIR)) return horse_parts[part];