# Versorger steht auf feindlichem Terrain
elif not gc.getTeam(iTeam).isAtWar(iTeamPlot):
# Plot wird beschlagnahmt
iSupplyChange += 10
# Transportiert der Versorger ein Heldendenkmal / Siegesdenkmal
iBuilding = PAE_Unit.getHeldendenkmal(pHeadSelectedUnit)
if iBuilding != -1:
szText = localText.getText("TXT_UNIT_INFO_BAR_8",()) + u": %s" % gc.getBuildingInfo(iBuilding).getDescription()
screen.setTableColumnHeader("SelectedTradeText", 0, u"", 300)
screen.appendTableRow("SelectedTradeText")
screen.setTableText("SelectedTradeText", 0, 0, szText, "", WidgetTypes.WIDGET_HELP_SELECTED, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
screen.show("SelectedTradeText")
else:
# Unit Info Bar rechts oben
UnitBarType = "HEALER"
iMax = PAE_Unit.getMaxSupply(pHeadSelectedUnit)
iSup = PAE_Unit.getSupply(pHeadSelectedUnit)
iValue1 += iSup
iValue2 += iMax
# CyInterface().addMessage(gc.getGame().getActivePlayer(), True, 10, CyTranslator().getText("TXT_KEY_MESSAGE_TEST",("Current Supply "+str(iValue1)+" max Supply "+str(iValue2),)), None, 2, None, ColorTypes(10), 0, 0, False, False)
szLeftBuffer = localText.getText("TXT_UNIT_INFO_BAR_6", ())
szRightBuffer = u"(%d/%d)" % (iValue1, iValue2)
screen.appendTableRow("SelectedUnitText")
screen.setTableText("SelectedUnitText", 0, iRow, szLeftBuffer, "", WidgetTypes.WIDGET_HELP_SELECTED, -1, -1, CvUtil.FONT_LEFT_JUSTIFY)
screen.setTableText("SelectedUnitText", 1, iRow, szRightBuffer, "", WidgetTypes.WIDGET_HELP_SELECTED, -1, -1, CvUtil.FONT_RIGHT_JUSTIFY)
screen.show("SelectedUnitText")
screen.show("SelectedUnitPanel")
iRow += 1
UnitBarType = "HEALER"
iMax = PAE_Unit.getMaxSupply(pHeadSelectedUnit)
iSup = PAE_Unit.getSupply(pHeadSelectedUnit)
iValue1 += iSup
iValue2 += iMax
; Set to 1 for no python exception popups
HidePythonExceptions = 0
Probably because they share the same class. National limits are set by class. Falxman and Sicaman are in different classes so you can build 3 of each. But I don't understand exactly what is "Chief"? Dacian Chief ?
Chief is a new unit and new class.
hm... this should work... you should train a third again.... perhaps you have another unit (defected) that shares that class?
CyInterface().addMessage(iPlayer, True, 5, CyTranslator().getText("TXT_KEY_MESSAGE_SUPPLY_RELOAD_2", (pLoopOwner.getNameKey(), 0)), None, 2, lHealer[0].getButton(), ColorTypes(8), iX, iY, True, True)
The friendly %s1 people have recharged your supply unit!
<BonusRevealed>BONUS_HUNDE</BonusRevealed>