Follow-up Comment #6, bug #22352 (project wesnoth):
After the discussion on the dev channel I had the information I needed to look
into this in a bit more detail. There are four terrain types which will often
come up as missing in the units.cfg (indicating N/A movement cost and 0%
defence):
* Impassable
* Unwalkable
* Deep Water
* Rails
Of these, the top three make sense to be marked as 0% defence at the
appropriate time. Impassable will never be accessible, unwalkable is only
accessible by flying units, and deep water will only be accessible by undead
and some aquatic units.
On the other hand, rails doesn't make sense on its own - and in fact is always
encountered layered with another terrain type. Interestingly, of the official
campaigns, I could only find rail hexes in some of the underground sections of
Northern Rebirth - no other campaign use them (that I could find, anyway). Of
these hexes, the terrain types I found layered with them are flat and cave.
From what I can tell, at least by looking at the terrain icons, rails is the
only terrain type exhibiting this funny behaviour. So as a work-around, we
could do something like add [&& info.id != "rails"] to the big if-condition
printing out the terrain listings in unit_topic_generator::operator() of
help_topic_generators.cpp, disabling the Rails listing altogether.
The alternative would be to add rails parameters to the units.cfg, and that
may not mix well with the flat and cave parameters nor make sense in the
units' terrain listings.
So do we have a preference on which direction to take?
(As an aside, the Terrain Modifiers listings don't appear when accessing Help
from the Title Screen, and when accessed from the Map Editor, all terrains are
listed with 0% defence and N/A movement cost.)
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?22352>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs