MagisterCultuum
Great Sage
Ok, but how would I make the fields how up for the second improvement?
Ok, but how would I make the fields how up for the second improvement?
While merging my modmod with patch K, I run into a bug....it turned out that this bug affects human-player improvement's growth-rate.
<iImprovementUpgradeRateModifier>25</iImprovementUpgradeRateModifier>
and
<iImprovementUpgradeRateModifier>-10</iImprovementUpgradeRateModifier>
17872: m_iCivilizationNeeded(NO_CIVILIZATION),
17998: int CvFeatureInfo::getCivilizationNeeded() const
18000: return m_iCivilizationNeeded;
18215: pXML->GetChildXmlValByName(szTextVal, "CivilizationNeeded");
18216: m_iCivilizationNeeded = GC.getInfoTypeForString(szTextVal);
4426: int getCivilizationNeeded() const;
4495: int m_iCivilizationNeeded;
9857: if ([COLOR="Red"]GC.getFeatureInfo((FeatureTypes)GC.getFeatureInfo(getFeatureType()).getFeatureUpgrade()).getCivilizationNeeded() == NO_CIVILIZATION[/COLOR]
9858: || isOwned() && GC.getFeatureInfo((FeatureTypes)GC.getFeatureInfo(getFeatureType()).getFeatureUpgrade()).getCivilizationNeeded() == GET_PLAYER(getOwnerINLINE()).getCivilizationType())
820: <CivilizationNeeded>CIVILIZATION_TLACATL</CivilizationNeeded>
130: <ElementType name="CivilizationNeeded" content="textOnly"/>
168: <element type="CivilizationNeeded" minOccurs="0"/>
It's a kinda important file(especially if you want to add your own xml files, which you have done so you HAVE been in that file
)
I'm trying to write it so that Infernal Pact is a ritual that will summon the Infernals under a a random Demon Lord (from Lord of the Balors), where the ritual has a world limit of 7 but each team can only use it once. I've done this before about 2 years ago, but I did not move that code to my new computer and have deleted everything from my old one.
Could someone remind me how to check to see is a leader has ever been present in a game?
for i in range(CyGame().countCivPlayersEverAlive()):
pPlayer = gc.getPlayer(i)
iLeaderType = pPlayer.getLeaderType()
if iLeaderType == gc.getInfoTypeForString('LEADER_HYBOREM'):
#Do something