]> granicus.if.org Git - nethack/commitdiff
bird_parts for ravens
authorcohrs <cohrs>
Sat, 30 Mar 2002 21:16:34 +0000 (21:16 +0000)
committercohrs <cohrs>
Sat, 30 Mar 2002 21:16:34 +0000 (21:16 +0000)
- ravens need special parts, actual bats are still best handled by animal_parts

doc/fixes34.1
src/polyself.c

index b106bacaaacd81cd50bb366ee4e1e0cc19bdddb0..f48ae769877ddc9023c62006f0424f63e10baffd 100644 (file)
@@ -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
index c909a50ecc401d08c716e0c64cfc93c947e31c8d..d05437a7c1b2970313cfec1ab9a55c9a8e840d02 100644 (file)
@@ -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];