Enemy movement weirdness
issueid=1145 08-04-2012 07:49 PM
Junior Member
Number of reported issues by Cass: 18
Enemy movement weirdness
Enemies seem to stop moving

This might have been a strange coincidence or something, but it looked like a bug to me:

I was ambushed by wolves in the hills. The wolves were all hostile and running towards me, but whenever one moved onto a hill it stopped moving (though it was still hostile and attacked me when i moved next to it). They moved normally over grassland.
Issue Details
Issue Number 1145
Project ADOM II (formerly known as JADE)
Category Unknown
Status Fixed
Priority Unknown
Affected Version ADOM II 0.2.8
Fixed Version ADOM II 0.3.0
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




08-04-2012 08:36 PM
Member
I suspect this is because the energy cost for moving onto a hill square is greater than for moving onto a plains square. After testing this a bit, I estimate the energy cost is around 300-400% normal for moving onto hills (so you get several chances to act before a monster who just stepped onto a hill, assuming you don't immediately step on a hill yourself). If you happen upon a wilderness encounter while flying over mountains (and it doesn't break your game) then you can see a more extreme version of this effect with mountain squares.

08-18-2012 10:35 PM
The Creator
Yes, actually it's a feature. Some terrain types are costly to move into and thus you also need to be careful when moving into them.

But this leads to an actual improvement: The path finding code so far didn't take into account that some tiles are less favorable (due to this higher cost) than others... I implemented that improvement.

Fixed for ADOM II 0.3.0. Please send your real name to creator(at)ancientdomainsofmystery.com for it to be included in the credits. (If you were already asked to do so you can ignore this message. Please include a reference to the bug or RFE you are credited for.)

+ Reply