Jump to content

intended behavior? (damage_near_loc)


Recommended Posts

OK... I decided my spiders still weren't quite challenging enough, so I decided to have them spit poison every couple of turns to soften up the melee types standing adjacent to them and hacking at them. damage_near_loc seemed the perfect candidate for that, and works perfectly EXCEPT... a shopkeeper on the other side of a stone wall from the spiders also gets poisoned. smile

 

It's a simple enough matter to move the shopkeeper far enough away from the wall to not get poisoned. I just expected intervening impassible terrain to block the damage, so I'm wondering if the current behavior is intended or a bug.

 

-spyderbytes

Link to comment
Share on other sites

Unfortunately, this goes back to the Exiles -- had Jeff felt like adding area-of-effect spells to the Av series ( :rolleyes: ), this sort of thing would have been avoided, among other things.

 

For you and all who come after you, no, nothing stops you from taking damage on terrain. Not even intervening impassible terrain -- even if you found yourself IN one of the walls, you'd take damage.

Link to comment
Share on other sites

You wouldn't need AoE spells to have what (to me) would be correct behavior for this call. Seems to me it would just be a check with the pathfinding algorithm to see if the path from the damager's current loc to the loc in question is range squares or less. Sure, my spider COULD go out the door, around the building and into the shop in question, but not in 'range' moves. So it shouldn't do damage there.

 

Of course, not knowing the particulars of the implementation, such a call to the pathfinding algorithm might be prohibitively expensive. In that case, current behavior would be correct (not to say optimal wink ).

 

-spyderbytes

Link to comment
Share on other sites

Quote:
Originally written by spyderbytes:
You wouldn't need AoE spells to have what (to me) would be correct behavior for this call. Seems to me it would just be a check with the pathfinding algorithm to see if the path from the damager's current loc to the loc in question is range squares or less.
The simplest solution is probably just to use the can_see calls for area effect attacks. If you cannot see the square, then some terrain is blocking it. This differs from the pathfinding as it would allow stuff to go through windows (which is probably a desirable effect).
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...