I was looking at some of your modcomps. Very goodbut...
...while looking at Mont St. Michel, it seems it also revives naval units, right?
If so, you have to make sure that the city where it revives is coastal, otherwise you could end up with a naval unit in a non-coastal city.
Anyway keep up the good work!
EDIT: same for Tomb of Cyrus (it is possible to attach a great general to a naval transport unit)
EDIT2: Temple of Heaven. Shouldn't there be a check for the ObsoleteTech when the city with the temple is razed? I think that the previous owner of the razed city otherwise gets a penalty on unit construction, right?
Hmm not on my modding com now
1) For Mont St Michel, I remember I added a check for non mechanical units. Thus, for standard BTS only certain land troops will be revived. Since naval units are all mechanical, they are automatically excluded.
2) As for Tomb of Cyrus, the one that gets revived is the GG itself, not the attached unit, so doesn't matter whether the GG is attached to naval unit.
This is so that you don't send your GG attached unit on a rambo mission thinking it doesn't matter since it will revive anyway. Thus, if it died you lose that high experienced unit but still get back the GG to attach to another unit. Sounds like recycling
3) I believe the code I used for Temple is getNumActiveBuilding instead of getNumBuilding. "Active" will check if it is obsolete thus, there is no need for the obsolete tech check.
Will double check when the monitor is on a good mood and works again -.-
All Cities
Palace Collection!!!
Done:
China => Forbidden Palace
France => Versailles
England => Buckingham Palace
Mongolia => Tumen Amugulang
America => White House
Germany => Reichstag
Portugal => Palacio da Pena
Korea => Changdeokgung
Persia => Apadana Palace
Ottoman => Topkapi Palace
Holy Roman => Prague Castle
Looking for:
Arabia, Aztec, Babylon, Byzantium, Carthage, Celt, Egypt, Ethiopia, Greece, Inca, India, Japan, Khmer, Maya, Native America, Rome, Sumeria, Viking, Zulu
Found Artwork:
Netherlands, Mali, Spain, Russia
elif Alamut == 2:
for iTech in range(gc.getNumTechInfos()):
if VictimTeam.isHasTech(iTech) and pTeam.isHasTech(iTech) == false:
pTeam.changeResearchProgress(iTechType, pTeam.getResearchCost(iTech) - pTeam.getResearchProgress(iTech), iPlayer)
CyInterface().addMessage(iPlayer,true,15,CyTranslator().getText("TXT_ALAMUT_STEALTECH",(VictimCiv,)),'',0,'',-1,-1,-1,false,false)
break
@The_J
Finished Python Wonders 4 and Python Projects 1
Need 2 more posts below Gigapack![]()