def onCityBuildingBuilding(self, argsList): 'City begins building a Building' pCity = argsList[0] iBuildingType = argsList[1] # ent >>> ## 遺産狂は他国での世界遺産建設開始を察知 iBuildingInfo = gc.getBuildingInfo(iBuildingType) if gc.getBuildingClassInfo(iBuildingInfo.getBuildingClassType()).getMaxGlobalInstances() == 1: pPlayer = gc.getPlayer(pCity.getOwner()) szMessage = CyTranslator().getText("TXT_KEY_MESSAGE_START_PRODUCTION_WORLDHERITAGE", (pCity.getName(), iBuildingInfo.getDescription())) szButton = iBuildingInfo.getButton() for iLoopPlayer in xrange(gc.getMAX_PLAYERS()): pLoopPlayer = gc.getPlayer(iLoopPlayer) if pLoopPlayer.isAlive(): if pLoopPlayer.hasTrait(gc.getInfoTypeForString('TRAIT_CRAZY_BY_WORLDHERITAGE')): if pLoopPlayer != pPlayer: CyInterface().addMessage(iLoopPlayer, True, gc.getEVENT_MESSAGE_TIME(), szMessage, '', InterfaceMessageTypes.MESSAGE_TYPE_INFO, szButton, en.eColorUnit, pCity.getX(), pCity.getY(), True, True) # ent <<< if (not self.__LOG_CITYBUILDING): return CvUtil.pyPrint("%s has begun building a %s" %(pCity.getName(), gc.getBuildingInfo(iBuildingType).getDescription())) ///以降はXML <TEXT> <Tag>TXT_KEY_MESSAGE_START_PRODUCTION_WORLDHERITAGE</Tag> <English>%s1_city is building %s2_building. </English> <French/> <German/> <Italian/> <Spanish/> <Japanese>都市%s1_cityで%s2_buildingを建設中です!</Japanese> </TEXT>