Ronkhar
Warlord
I went through the python code (CvEventManager.py)
It has a line to check open borders : if eTeam.isOpenBorders(iTeam2):
The descriptions (help and strategy) are in \Assets\XML\Text\CIV4GameText_FFH2.xml, line 4481 to 4494.
I think we should replace the incomplete help "[ICON_BULLET]Grants you any tech known by 3 other players" with the strategy "Grants a technology to your civilization for free, if three players you have open borders agreements with already have it.), longer but accurate.
It has a line to check open borders : if eTeam.isOpenBorders(iTeam2):
The descriptions (help and strategy) are in \Assets\XML\Text\CIV4GameText_FFH2.xml, line 4481 to 4494.
I think we should replace the incomplete help "[ICON_BULLET]Grants you any tech known by 3 other players" with the strategy "Grants a technology to your civilization for free, if three players you have open borders agreements with already have it.), longer but accurate.
Code:
if numB( Building["Eyes and Ears"]) > 0:
eTeam = gc.getTeam(pPlayer.getTeam())
listTeams = []
for iPlayer2 in xrange(gc.getMAX_PLAYERS()):
pPlayer2 = gc.getPlayer(iPlayer2)
if (pPlayer2.isAlive() and iPlayer2 != iPlayer):
iTeam2 = pPlayer2.getTeam()
if eTeam.isOpenBorders(iTeam2):
listTeams.append(gc.getTeam(iTeam2))
if len(listTeams) >= 3:
setTech = eTeam.setHasTech
canResearch = pPlayer.canEverResearch
for iTech in xrange(gc.getNumTechInfos()):
if (canResearch(iTech)):
if eTeam.isHasTech(iTech) == False:
iCount = 0
for i in xrange(len(listTeams)):
if listTeams[i].isHasTech(iTech):
iCount = iCount + 1
if iCount >= 3:
setTech(iTech, True, iPlayer, False, True)
message(iPlayer,True,25,CyTranslator().getText("TXT_KEY_MESSAGE_EYES_AND_EARS_NETWORK_FREE_TECH",()),'AS2D_TECH_DING',1,'Art/Interface/Buttons/Buildings/Eyesandearsnetwork.dds',ColorTypes(8),iX,iY,True,True)