if the monster that a statue represents is not made of flesh then don't
allow stone_to_flesh to animate it, make a meatball instead
This commit is contained in:
nethack.allison
2003-09-29 02:20:18 +00:00
parent e1f5ddd820
commit b6d32e499d
2 changed files with 12 additions and 0 deletions

View File

@@ -33,6 +33,8 @@ more tweaks to fog cloud behavior
when dismounting by choice and unimpaired, try not to land on a boulder
casting stone-to-flesh on self while wielding a statue caused problems
add tab support to menu strings for control-x minimal_enlightenment()
if the monster that a statue represents is not made of flesh then don't
allow stone_to_flesh to animate it, make a meatball instead
Platform- and/or Interface-Specific Fixes

View File

@@ -1599,6 +1599,11 @@ struct obj *obj, *otmp;
(void) get_obj_location(obj, &oox, &ooy, 0);
refresh_x = oox; refresh_y = ooy;
if (vegetarian(&mons[obj->corpsenm])) {
/* Don't animate monsters that aren't flesh */
obj = poly_obj(obj, MEATBALL);
goto smell;
}
if (!animate_statue(obj, oox, ooy,
ANIMATE_SPELL, (int *)0)) {
struct obj *item;
@@ -1632,6 +1637,11 @@ makecorpse: if (mons[obj->corpsenm].geno &
res = 0;
break;
}
if (vegetarian(&mons[obj->corpsenm])) {
/* Don't animate monsters that aren't flesh */
obj = poly_obj(obj, MEATBALL);
goto smell;
}
(void) get_obj_location(obj, &oox, &ooy, 0);
refresh_x = oox; refresh_y = ooy;
mon = makemon(&mons[obj->corpsenm],