| | |
| | | import PlayerControl
|
| | | import IpyGameDataPY
|
| | | import ChPyNetSendPack
|
| | | import PlayerGatherSoul
|
| | | import NetPackCommon
|
| | | import IPY_GameWorld
|
| | | import PlayerHorse
|
| | |
| | | import ChConfig
|
| | | import ItemControler
|
| | | import PlayerDienstgrad
|
| | | import PlayerGatherTheSoul
|
| | | import PlayerActGubao
|
| | | import PlayerActTask
|
| | | import PlayerCoat
|
| | |
|
| | |
| | | RefreshGubaoAttr(curPlayer)
|
| | | Sync_GubaoInfo(curPlayer, [gubaoID])
|
| | |
|
| | | PlayerActGubao.OnGubaoCost(curPlayer, needPieceInfo, realNeedItemList)
|
| | | return
|
| | |
|
| | | #// B2 17 古宝升星 #tagCMGubaoStarUp
|
| | |
| | | RefreshGubaoAttr(curPlayer)
|
| | | Sync_GubaoInfo(curPlayer, [gubaoID])
|
| | |
|
| | | PlayerActGubao.OnGubaoCost(curPlayer, needPieceInfo, realNeedItemList)
|
| | | PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_GubaoStarUp)
|
| | | return
|
| | |
|
| | |
| | | RefreshGubaoAttr(curPlayer)
|
| | | Sync_GubaoInfo(curPlayer, [gubaoID])
|
| | |
|
| | | PlayerActGubao.OnGubaoCost(curPlayer, needPieceInfo, realNeedItemList)
|
| | | PlayerActTask.AddActTaskValue(curPlayer, ChConfig.ActTaskType_GubaoLVUp)
|
| | | return
|
| | |
|
| | |
| | | if attrID > 0 and addAttrValue > 0:
|
| | | effAttrInfo[attrID] = effAttrInfo.get(attrID, 0) + addAttrValue
|
| | |
|
| | | #22 天星塔每通关x层+xx属性 x层
|
| | | elif effType == 22:
|
| | | skyTowerFloor = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_SkyTowerFloor)
|
| | | addAttrValue = int(skyTowerFloor / effCond * effAttrValue)
|
| | | #GameWorld.DebugLog(" effID=%s,effType=%s,effCond=%s,skyTowerFloor=%s,attrID=%s,addAttrValue=%s" % (effID, effType, effCond, skyTowerFloor, attrID, addAttrValue))
|
| | | if attrID > 0 and addAttrValue > 0:
|
| | | effAttrInfo[attrID] = effAttrInfo.get(attrID, 0) + addAttrValue
|
| | | |
| | | #23 符印塔每通关x层+xx属性 x层
|
| | | elif effType == 23:
|
| | | trialTowerPassLV = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_TrialTower_PassLV)
|
| | | addAttrValue = int(trialTowerPassLV / effCond * effAttrValue)
|
| | | #GameWorld.DebugLog(" effID=%s,effType=%s,effCond=%s,trialTowerPassLV=%s,attrID=%s,addAttrValue=%s" % (effID, effType, effCond, trialTowerPassLV, attrID, addAttrValue))
|
| | | if attrID > 0 and addAttrValue > 0:
|
| | | effAttrInfo[attrID] = effAttrInfo.get(attrID, 0) + addAttrValue
|
| | | |
| | | #24 符印等级每每x级+xx属性 x级
|
| | | elif effType == 24:
|
| | | runeTotalLV = PlayerRune.GetRuneTotalLV(curPlayer)
|
| | | addAttrValue = int(runeTotalLV / effCond * effAttrValue)
|
| | | #GameWorld.DebugLog(" effID=%s,effType=%s,effCond=%s,runeTotalLV=%s,attrID=%s,addAttrValue=%s" % (effID, effType, effCond, runeTotalLV, attrID, addAttrValue))
|
| | | if attrID > 0 and addAttrValue > 0:
|
| | | effAttrInfo[attrID] = effAttrInfo.get(attrID, 0) + addAttrValue
|
| | | |
| | | #25 聚魂等级每每x级+xx属性 x级
|
| | | elif effType == 25:
|
| | | soulTotalLV = PlayerGatherSoul.GetGatherSoulTotalLV(curPlayer)
|
| | | addAttrValue = int(soulTotalLV / effCond * effAttrValue)
|
| | | #GameWorld.DebugLog(" effID=%s,effType=%s,effCond=%s,soulTotalLV=%s,attrID=%s,addAttrValue=%s" % (effID, effType, effCond, soulTotalLV, attrID, addAttrValue))
|
| | | if attrID > 0 and addAttrValue > 0:
|
| | | effAttrInfo[attrID] = effAttrInfo.get(attrID, 0) + addAttrValue
|
| | |
|
| | |
| | | effValue = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GubaoItemEffValue % (gubaoID, effType))
|
| | | addAttrValue = int(effValue / effCond * effAttrValue)
|
| | | #GameWorld.DebugLog(" effID=%s,effType=%s,effValue=%s,effCond=%s,attrID=%s,addAttrValue=%s" % (effID, effType, effValue, effCond, attrID, addAttrValue))
|
| | | if attrID > 0 and addAttrValue > 0:
|
| | | effAttrInfo[attrID] = effAttrInfo.get(attrID, 0) + addAttrValue
|
| | | |
| | | #53 镶嵌x品质聚魂每x个+xx属性 x品质 x个
|
| | | elif effType == 53:
|
| | | soulColor = effCond
|
| | | colorCount = PlayerGatherTheSoul.GetHoleSoulColorCount(curPlayer, soulColor, True)
|
| | | addAttrValue = int(colorCount / effCond2 * effAttrValue)
|
| | | #GameWorld.DebugLog(" effID=%s,effType=%s,soulColor=%s,colorCount=%s,effCond2=%s,attrID=%s,addAttrValue=%s" % (effID, effType, soulColor, colorCount, effCond2, attrID, addAttrValue))
|
| | | if attrID > 0 and addAttrValue > 0:
|
| | | effAttrInfo[attrID] = effAttrInfo.get(attrID, 0) + addAttrValue
|
| | |
|