]> granicus.if.org Git - nethack/commitdiff
B14017 - skeletons and initial armor
authorcohrs <cohrs>
Mon, 9 Dec 2002 01:29:04 +0000 (01:29 +0000)
committercohrs <cohrs>
Mon, 9 Dec 2002 01:29:04 +0000 (01:29 +0000)
Add another check to m_dowear to allow skeletons to wear the leather armor
they're created with.

doc/fixes34.1
src/worn.c

index 0fdc838fb9700549cb315a9069cc173d69c79680..06fbb4c5ade88657cd3c26a9b7404362bd0afc6a 100644 (file)
@@ -318,6 +318,7 @@ web breaking should consider steed strength and other characteristics
 various missing or inappropriate "killed by" death messages
 second attack for two-weapon combat will miss if first knocks target away
 jousting effect no longer occurs every time riding character hits with lance
+skeletons should be able to wear the armor they're created with
 
 
 Platform- and/or Interface-Specific Fixes
index 30b28a8ce3f7dbef9fb62fdd9e5d0c6cbd82657a..3ec753af95bfbdd0e9f23938da616b811946bc4f 100644 (file)
@@ -366,8 +366,10 @@ boolean creation;
         */
        if (verysmall(mon->data) || nohands(mon->data) || is_animal(mon->data))
                return;
-       /* give mummies a chance to wear their wrappings */
-       if (mindless(mon->data) && (mon->data->mlet != S_MUMMY || !creation))
+       /* give mummies a chance to wear their wrappings
+        * and let skeletons wear their initial armor */
+       if (mindless(mon->data) && (!creation ||
+           (mon->data->mlet != S_MUMMY && mon->data != &mons[PM_SKELETON])))
                return;
 
        m_dowear_type(mon, W_AMUL, creation);