dacubz145
Deity
Quick question
I was testing out my mod and randomly throughout the game i get messages saying "The Empire State buildings has given us _____". They come in threes but the ESB is not even buildable yet and I definatly do not have it.
So I checked my even manager and I realized I have two empire state building codes
and
Now by the look of it I should delete the first one. Do you think that will fix the problem (since I dont know what caused it, i can't duplicate it to see if its still there)
I was testing out my mod and randomly throughout the game i get messages saying "The Empire State buildings has given us _____". They come in threes but the ESB is not even buildable yet and I definatly do not have it.
So I checked my even manager and I realized I have two empire state building codes
Code:
## Empire State Building Start ##
b_Empire = gc.getInfoTypeForString("BUILDINGCLASS_EMPIRE_STATE")
if pCity.getNumActiveBuilding(b_Empire) == true:
freebie = 0
while freebie < 3:
randBonus = CyGame().getSorenRandNum(gc.getNumBonusInfos(), "Freebie")
bonusinfo = gc.getBonusInfo(randBonus)
if bonusinfo.getBonusClassType() < 3 and bonusinfo.getTechObsolete() == -1 and randBonus != gc.getInfoTypeForString("BONUS_COAL"): ## Coal, Rush, Modern, Wonder Types and Obsolete ones Excluded
pCity.changeFreeBonus(randBonus,1)
CyInterface().addMessage(iNewOwner,true,20,CyTranslator().getText("TXT_EMPIRE_BONUS",(bonusinfo.getDescription(),)),'',0,'',-1,-1,-1, false,false)
freebie +=1
## Empire State Building End ##
Code:
## Empire State Building Start ##
if iBuildingType == gc.getInfoTypeForString("BUILDINGCLASS_EMPIRE_STATE"):
iPlayer = pCity.getOwner()
freebie = 0
while freebie < 3:
randBonus = CyGame().getSorenRandNum(gc.getNumBonusInfos(), "Freebie")
bonusinfo = gc.getBonusInfo(randBonus)
#### Coal, Rush, Modern, Wonder Types and Obsolete ones Excluded
if bonusinfo.getBonusClassType() < 3 and bonusinfo.getTechObsolete() == -1 and randBonus != gc.getInfoTypeForString("BONUS_COAL"):
pCity.changeFreeBonus(randBonus,1)
CyInterface().addMessage(iPlayer,true,20,CyTranslator().getText("TXT_EMPIRE_BONUS",(bonusinfo.getDescription(),)),'',0,'',-1,-1,-1, false,false)
freebie += 1
## Empire State Building End ##
Now by the look of it I should delete the first one. Do you think that will fix the problem (since I dont know what caused it, i can't duplicate it to see if its still there)