Platypedia Updates
1) Fix Limited Units bug with Combat Class Sorting
2) Added Sort by Combat Class to Promotions
Notes:
The main menu looks perfect, but when you click any of them, it will still jump to the correct promotion, just that it will link to the last instance it appears.
For instance, Combat 1 appears for almost all combat class.
Clicking on it under Recon will link to Combat 1, but still under Air Units.
Thus, default sorting method still by alphabetic order.
This is just a way to display all promotions available for combat class if you lazy to click a unit to see.
Since it is a bug, I will slowly update all those using Pedia like Baddies and Natural Wonders.
For now, only Pedia and Ultrapack updated.
@Vincent
1) The graphical tag is required, because I don't want to write 10 if else statements to exclude the unwanted ones.
2) New Combat types shouldn't need to be added to the dummy concepts since the worker combat class of yours showed up before
4) Scoreboard, it just feels weird if the score itself appears in middle of stuff. Extreme left or extreme right looks better, since that is the main essense of a scoreboard right?
5) I mess with the tech bar text as well, see how it goes. Should be same position as GP ones
6) For a start:
Code:
def sortUnits(self, iType):
lList0 = []
lSorted = []
for iUnit in xrange(gc.getNumUnitInfos()):
UnitInfo = gc.getUnitInfo(iUnit)
if UnitInfo.isGraphicalOnly(): continue
iUnitClass = UnitInfo.getUnitClassType()
[COLOR="red"]if isLimitedUnitClass(iUnitClass): continue[/COLOR]
lList0.append(UnitInfo.getDescription() + " Platy_" + str(iUnit))
Remove the line in red and all units will appear under units.
Then there are various places in CvPediaMain with reference to LimitedUnits to be all removed to remove the new page.
CvPediaUnit will be more troublesome, but I guess settle the main page first