merijn_v1
Black Belt
@ Leoreth
How is it going with translating the Consts.py into DLL? I can't wait to launch the 2nd UB modcomp.
How is it going with translating the Consts.py into DLL? I can't wait to launch the 2nd UB modcomp.
I support using more creative naming for units whose name currently includes the civ adjective. Egyptian Axeman, Carthaginian War Elephant, Dutch Grenadier etc. are going to display their respective adjective twice in the processing message otherwise.
Atlas Elephant was recommended here earlier, why not go with that? To be honest, if you're going to shoot down Atlas Elephant because of obvious reasons, you might be wanting to rename Incan Sun Temple into something more distinctive as well. But even that wouldn't clear the issue of Carthaginian War Elephant being essentially the same thing as calling Roman Legion as Roman Swordsman because that's what it is.
Your modmod idea is very good but I don't think what works for other mods does justice to RFC. For example, I don't think additional health and happiness per culture is going to be very useful for Persia, located in the semidesert. (Not to mention I don't think there if there are simply enough fitting UU's for each civilization.) Good idea, but needs more refined localisation if you ask me.
And seriously, rename them Atlas Elephant. They're the same thing, but with Atlases you'll have a less goofy name.
def getUnitCostMod(self, argsList):
iPlayer, iUnit = argsList
iCostMod = -1 # Any value > 0 will be used
return iCostMod
def getBuildingCostMod(self, argsList):
iPlayer, iCityID, iBuilding = argsList
pPlayer = gc.getPlayer(iPlayer)
pCity = pPlayer.getCity(iCityID)
iCostMod = -1 # Any value > 0 will be used
## Portugese Explorers House ##
pBuildingInfo = gc.getBuildingInfo(iBuilding)
iPortugalExplorersHouse = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_PORTUGAL_EXPLORERHOUSE')
aiExceptionList = [iPortugalExplorersHouse]
pPlayer1 = gc.getPlayer(pCity.plot().getOwner())
bPortugalExplorersHouse = gc.getInfoTypeForString("BUILDING_PORTUGAL_EXPLORERHOUSE")
obsoleteTech = gc.getBuildingInfo(bPortugalExplorersHouse).getObsoleteTech()
if ( gc.getTeam(pPlayer1.getTeam()).isHasTech(obsoleteTech) == false or obsoleteTech == -1 ):
for iCity in range(pPlayer1.getNumCities()):
ppCity = pPlayer1.getCity(iCity)
if ppCity.getNumActiveBuilding(bPortugalExplorersHouse) == true:
if ((isUnitClass(gc.getUnitInfo,gc.getNumUnitInfos(),'UNITCLASS_SETTLER'):
if (not iUnit in aiExceptionList):
return 65 # 65% of normal cost
return -1
## Portugese Explorers House ##
return iCostMod