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:
@@ -318,6 +318,7 @@ web breaking should consider steed strength and other characteristics
|
|||||||
various missing or inappropriate "killed by" death messages
|
various missing or inappropriate "killed by" death messages
|
||||||
second attack for two-weapon combat will miss if first knocks target away
|
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
|
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
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+4
-2
@@ -366,8 +366,10 @@ boolean creation;
|
|||||||
*/
|
*/
|
||||||
if (verysmall(mon->data) || nohands(mon->data) || is_animal(mon->data))
|
if (verysmall(mon->data) || nohands(mon->data) || is_animal(mon->data))
|
||||||
return;
|
return;
|
||||||
/* give mummies a chance to wear their wrappings */
|
/* give mummies a chance to wear their wrappings
|
||||||
if (mindless(mon->data) && (mon->data->mlet != S_MUMMY || !creation))
|
* and let skeletons wear their initial armor */
|
||||||
|
if (mindless(mon->data) && (!creation ||
|
||||||
|
(mon->data->mlet != S_MUMMY && mon->data != &mons[PM_SKELETON])))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_dowear_type(mon, W_AMUL, creation);
|
m_dowear_type(mon, W_AMUL, creation);
|
||||||
|
|||||||
Reference in New Issue
Block a user