| | |
| | | suitTotalRate = ipyData.GetSuitTotalRate()
|
| | | itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)
|
| | | delEquipIndexList = []
|
| | | if not costEquipCnt:
|
| | | totalEquipStars = ChEquip.GetTotalEquipStars(curPlayer)
|
| | | if totalEquipStars < IpyGameDataPY.GetFuncCfg('EquipStarCustomized'):
|
| | | curRate = 100
|
| | | elif not costEquipCnt:
|
| | | curRate = suitTotalRate / 2
|
| | | else:
|
| | | singleSuitRate = float(suitTotalRate) / costEquipCnt
|
| | |
| | | result = ChConfig.Def_ComposeState_Fail
|
| | | curPlayer.Sync_MakeItemAnswer(ShareDefine.Def_mitEquipStarUp, result)
|
| | | drDict = {"PlayerID":curPlayer.GetPlayerID(), "AccID":curPlayer.GetAccID(), "classLV":classLV, "equipPlace":equipPlace, "IsSuccess":isOK,
|
| | | "curRate":curRate, "nextStar":nextStar}
|
| | | "curRate":curRate, "nextStar":nextStar, 'totalEquipStars':totalEquipStars}
|
| | | DataRecordPack.SendEventPack("EquipStarUp", drDict, curPlayer)
|
| | | return result
|
| | |
|