soundmud / soundrts

A real-time strategy audio game
http://jlpo.free.fr/soundrts
Other
44 stars 32 forks source link

Bug: Mage Recalls Water Units to Non-water Squares #132

Closed MatejGolian closed 2 years ago

MatejGolian commented 3 years ago

If you use a mage to recall units that reside on a water-type square such as sea or ocean, the recalled units get placed exactly where the mage is. The way the recall ability currently works is fine for ground- and air-type units, but I think that it poses a problem when it comes to water-type ones, because these units get inadvertently stuck on the square where the mage is and there's absolutely no way of moving them back to a water square. So, I think that water units should get recalled to an adjacent water square relative to where the mage is. In case multiple such squares exist, maybe the water units could land on a random (but still adjacent) one. And if there's no such square adjacent to the mage, perhaps recalling these units should fail. And to keep things more simple and predictable, in case there are both air and water-type units among those that are to be recalled, maybe everything should end up placed where the water units do. What do you think?

soundmud commented 3 years ago

Maybe the game should recall only the units compatible with the destination? A flying mage or a floating mage in a water square would be able to recall boats.

soundmud commented 3 years ago

The default mage wouldn't be able to recall boats.

MatejGolian commented 3 years ago

@soundmud , sounds reasonable. Honestly, you come up with really fun and creative solutions.

paxcoder commented 3 years ago

good ideas.