B12004 polymorphing into minotaur
Polymorphing into creature with horns such as a minotaur, will cause your helmet to fall off if it is made of a hard material. Only minotaurs pass the has_horns() test in include/mondata.h because the complaint specifically referred to them, but that should perhaps be reviewed at some point by someone who is certain which creatures have horns growing from their head (some demons?)
This commit is contained in:
@@ -613,6 +613,21 @@ break_armor()
|
||||
}
|
||||
#endif
|
||||
}
|
||||
if (has_horns(youmonst.data)) {
|
||||
if ((otmp = uarmh) != 0) {
|
||||
if (is_flimsy(otmp) && !donning(otmp)) {
|
||||
char yourbuf[BUFSZ];
|
||||
/* Future possiblities: This could damage/destroy helmet*/
|
||||
Your("horns pierce through %s %s.", shk_your(yourbuf, otmp),
|
||||
xname(otmp));
|
||||
} else {
|
||||
if (donning(otmp)) cancel_don();
|
||||
Your("helmet falls to the %s!", surface(u.ux, u.uy));
|
||||
(void) Helmet_off();
|
||||
dropx(otmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (nohands(youmonst.data) || verysmall(youmonst.data)) {
|
||||
if ((otmp = uarmg) != 0) {
|
||||
if (donning(otmp)) cancel_don();
|
||||
|
||||
Reference in New Issue
Block a user