| | |
| | |
|
| | | soulGrade = ipyData.GetSoulGrade()
|
| | | exp *= float(IpyGameDataPY.GetFuncEvalCfg('GatherSoulLevelUp', 5, {}).get(soulGrade, 1))
|
| | | return exp
|
| | | return int(exp)
|
| | |
|
| | |
|
| | | ## 获取聚魂属性数值
|
| | |
| | |
|
| | | materialsIDList = []
|
| | | materialsLVDict = {}
|
| | | indexList1 = [] #背包的聚魂索引
|
| | | indexList2 = [] #孔索引
|
| | | indexList1, dataList1 = [], [] #背包的聚魂索引
|
| | | indexList2, dataList2 = [], [] #孔索引
|
| | | for i, placeType in enumerate(packList):
|
| | | index = indexList[i]
|
| | | if placeType == 0:
|
| | | GatherSoulData = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_VPackItem % (ShareDefine.rptGatherSoul, index)) # 聚魂背包中的值
|
| | | indexList1.append(index)
|
| | | dataList1.append(GatherSoulData)
|
| | | else:
|
| | | GatherSoulData = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GatherSoulHoleData % (index), 0)
|
| | | indexList2.append(index)
|
| | | dataList2.append(GatherSoulData)
|
| | | if not GatherSoulData:
|
| | | continue
|
| | | GatherSoulItemID = ItemControler.GetGatherSoulItemID(GatherSoulData)
|
| | |
| | | RefreshGatherSoulAttr(curPlayer)
|
| | | PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
|
| | | #返还多余魂尘
|
| | | totalPoint = int(totalPoint)
|
| | | if totalPoint > 0:
|
| | | PlayerControl.GiveMoney(curPlayer, ShareDefine.TYPE_Price_SoulDust, totalPoint)
|
| | | #给新物品
|
| | | curItem = ItemControler.GetOutPutItemObj(tagItemID)
|
| | | curItem.SetUserAttr(ShareDefine.Def_IudetGatherSoulLV, tagItemLV)
|
| | | PlayerItemControler = ItemControler.PlayerItemControler(curPlayer)
|
| | | PlayerItemControler.PutInItem(ShareDefine.rptGatherSoul, curItem, event=[ChConfig.ItemGive_ItemCompound, False, {'indexList1':indexList1, 'indexList2':indexList2, 'soulDust':totalPoint}])
|
| | | PlayerItemControler.PutInItem(ShareDefine.rptGatherSoul, curItem, event=[ChConfig.ItemGive_ItemCompound, False, {'indexList1':dataList1, 'indexList2':dataList2, 'soulDust':totalPoint}])
|
| | | GameWorld.DebugLog(' 聚魂合成 成功')
|
| | | curPlayer.Sync_MakeItemAnswer(ShareDefine.Def_mitGatherSoulCompound, 1)
|
| | | return
|
| | |
| | | itemData = GameWorld.GetGameData().GetItemByTypeID(GatherSoulItemID)
|
| | | if not itemData:
|
| | | continue
|
| | | if itemData.GetType() == ChConfig.Def_ItemType_GatherSoulCore:
|
| | | continue
|
| | | # if itemData.GetType() == ChConfig.Def_ItemType_GatherSoulCore:
|
| | | # continue
|
| | | itemColor = itemData.GetItemColor()
|
| | | GatherSoulItemPlusLV = ItemControler.GetGatherSoulItemPlusLV(GatherSoulData) + 1 #客户端1开始
|
| | | totalLV += GatherSoulItemPlusLV
|