| | |
| | | playControl.RefreshPlayerAttrState()
|
| | |
|
| | | if updPartStar in IpyGameDataPY.GetFuncEvalCfg('EquipPartStarNotify'):
|
| | | PlayerControl.WorldNotify(0, "StarLevelUp", [curPlayer.GetPlayerName(), curEquip.GetItemTypeID(), updPartStar])
|
| | | itemID = curEquip.GetItemTypeID()
|
| | | userData = curEquip.GetUserData()
|
| | | guid = ItemCommon.CacheNotifyEquipDetailInfo(curPlayer, curEquip)
|
| | | msgParamList = [curPlayer.GetPlayerName(), itemID, userData, guid, updPartStar]
|
| | | PlayerControl.WorldNotify(0, "StarLevelUp", msgParamList)
|
| | | EventShell.EventRespons_EquipStarUp(curPlayer)
|
| | | return
|
| | |
|
| | |
| | | suitTotalRate = ipyData.GetSuitTotalRate()
|
| | | itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)
|
| | | delEquipIndexList = []
|
| | | totalEquipStars = ChEquip.GetTotalEquipStars(curPlayer)
|
| | | |
| | | if not costEquipCnt:
|
| | | curRate = suitTotalRate / 2
|
| | | else:
|
| | |
| | | isSuite = costEquip.GetSuiteID()
|
| | | addRate = singleSuitRate if isSuite else singleSuitRate / 2
|
| | | curRate += addRate
|
| | | if totalEquipStars < IpyGameDataPY.GetFuncCfg('EquipStarCustomized'):
|
| | | curRate = 100
|
| | | if curRate <= 0:
|
| | | GameWorld.Log('装备升星异常 概率为0!!equipPackIndex=%s'%equipPackIndex)
|
| | | return result
|
| | |
| | | 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
|
| | |
|