HI I'm currently adding a new attribute to MG's unit xml description.
Its called max_unit_count and is used to give a limit how many units of this kind can be produced. This is typically useful for heroes or gods where you can only have one of .
I know this behaviour can be faked with new ressources and so on, but its not really the same. ( imagine you have 10 heroes so you need 10 ressources to make it work ). Its build in now and works and the AI also knows how to handle it, but:
How do I show these limits to a user?
Requirements and unit costs are usually displayed when you hold the mouse over a produce icon for example. Other Attributes of a unit are only shown if a unit already exists and you select it. But this new attribute is different, its somehow a requirement and somehow an attribute of the unit.
My only idea is to add a new "section" under requirements and show it there. But how do I call it?
(By the way, changes are only on my local copy, its not in svn yet )