At present the game XML has just a handful of Prereq XML types, but they aren't really consistent.
Code: xml
- <Prereq>
- <Type>Tech|Allegiance|BuildingRequirement|Race</Type>
- <Attribute>...</Attribute>
- </Prereq>
The Tech attribute is straight forward to use.
The Allegiance attribute is either Empire or Kingdom.
The BuildingRequirement attribute is varied but also looks straight forward.
But the Race attribute is currently either Fallen, Men or Kraxis (although the last one doesn't seem to be active because the current Kraxis racial type is down as Fallen in its file).
The question is, why bother using Race for either Fallen or Men when you already have the same delineation between the two Allegiance types?
Surely any Race type prerequisite that is currently Fallen or Men should be changed to the equivalent Allegiance type. Then the actual name of the race (eg Kraxis) should be coded into the races so we can actually use the Race type prerequesite to make real and easy racial differentiation. For example, allowing us to allow unique buildings, items, units, techs etc on a per race basis where we want to.
This simple change would add heaps of power to modders and make everyone's life much easier.
Please implement this. I found all iterations easily using Regular Expressions and a grep program in about 5 minutes. The Regex I used to isolate the Race types was
<Prereq>[\s]*<Type>Race</Type>[\s]*<Attribute>[\w_-]*
if that helps. There are only 44 matches in the current XML so it shouldn't take too long.