fix #K3455 - rocks vs xorns
Implement the suggestion that falling rock traps and rolling boulder traps be harmless to xorns. I've extended that to all missiles made of stone (rocks, gems, boulders, a handful of other things that will only matter if poly'd hero throws in '<' direction or is hit by stuff scattered by an explosion). I excluded ghosts because they would become even harder to kill and the missile handling would need extra checks to test for blessed objs.
This commit is contained in:
@@ -220,6 +220,11 @@
|
||||
#define touch_petrifies(ptr) \
|
||||
((ptr) == &mons[PM_COCKATRICE] || (ptr) == &mons[PM_CHICKATRICE])
|
||||
|
||||
/* missiles made of rocks don't harm these: xorns and earth elementals
|
||||
(but not ghosts and shades because that would impact all missile use
|
||||
and also require an exception for blessed rocks/gems/boulders) */
|
||||
#define passes_rocks(ptr) (passes_walls(ptr) && !unsolid(ptr))
|
||||
|
||||
#define is_mind_flayer(ptr) \
|
||||
((ptr) == &mons[PM_MIND_FLAYER] || (ptr) == &mons[PM_MASTER_MIND_FLAYER])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user