kieranmillar
Level: Smitemaster
Rank Points: 4040
Registered: 07-11-2014
IP: Logged
|
Re: Mouse movement should path around monsters (+2)
I quickly scouted out what might be involved in this feature request, and it seems more involved than I had hoped, so will be making it to something to think about post-release.
The quick travel pathfinding is good at avoiding triggering fights and picking up items, so the logic already exists somewhere. CMonster::FindOptimalPathTo already has an argument to make moving to the adjacent square good enough, so moving to the adjacent square of a monster you clicked on then making the final move to attack it also wouldn't have been all that hard.
But in reality it's more complicated than that. Especially when considering if the player has a sword. What you wouldn't want to do is have the player sidestep stabbing the enemy just so it can get closer, then body kill it, which would make you take more damage. OK, you can adjust the goal square if the clicked on square is a monster, but then what if that goal square has a collectible item on it, do we still want to pathfind onto it or are we trying to avoid those?
There's a lot of edge cases which would require careful consideration.
|