xdh
2019-06-20 345583c976863943932363dde9ff4aab01f41e94
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py
@@ -121,6 +121,8 @@
    suitTotalRate = ipyData.GetSuitTotalRate()
    itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)
    delEquipIndexList = []
    totalEquipStars = ChEquip.GetTotalEquipStars(curPlayer)
    if not costEquipCnt:
        curRate = suitTotalRate / 2
    else:
@@ -145,6 +147,8 @@
            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
@@ -170,7 +174,7 @@
        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