OACMODMOD//話術志向における態度好転を途中参加の文明にも通じるように変更

とりあえずハイボレムやバシウムを含めてテストしたがバグはあるかも知れない。
なお動作のためにonGameStart()の話術志向の記述は削除が必要。

とりあえずハイボレムやバシウムを含めてテストしたがバグはあるかも知れない。
なお動作のためにonGameStart()の話術志向の記述は削除が必要。

	def onFirstContact(self, argsList):
		'Contact'
		iTeamX, iHasMetTeamY = argsList
# mod ent >>>
		# TRAIT_SPEECH
		pTeamX = gc.getTeam(iTeamX)
		for iLoopPlayerX in xrange(gc.getMAX_CIV_PLAYERS()):
			pLoopPlayerX = gc.getPlayer(iLoopPlayerX)
			if pLoopPlayerX.isAlive():
				if pLoopPlayerX.hasTrait(gc.getInfoTypeForString('TRAIT_SPEECH')):
					iLoopTeamX = pLoopPlayerX.getTeam()
					if iLoopTeamX == iTeamX:
						pTeamY = gc.getTeam(iHasMetTeamY)
						for iLoopHasMetPlayerY in xrange(gc.getMAX_CIV_PLAYERS()):
							pLoopHasMetPlayerY = gc.getPlayer(iLoopHasMetPlayerY)
							if pLoopHasMetPlayerY.isAlive():
								iLoopHasMetTeamY = pLoopHasMetPlayerY.getTeam()
								if iLoopHasMetTeamY == iHasMetTeamY:
									pLoopHasMetPlayerY.AI_changeAttitudeExtra(iLoopPlayerX, 6)
# mod <<<
		if (not self.__LOG_CONTACT):
			return
		CvUtil.pyPrint('Team %d has met Team %d' %(iTeamX, iHasMetTeamY))