PDA

View Full Version : Enemy movement weirdness


Cass
08-04-2012, 07:49 PM
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.

Grond
08-04-2012, 08:36 PM
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.

adom-admin
08-18-2012, 10:35 PM
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.)