B14017 - skeletons and initial armor

Add another check to m_dowear to allow skeletons to wear the leather armor
they're created with.
This commit is contained in:
cohrs
2002-12-09 01:29:04 +00:00
parent 989f1cba5b
commit 167231f9ad
2 changed files with 5 additions and 2 deletions
+4 -2
View 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);