xdh
2019-06-15 47f6627083fb64b82fb238b384ce23f29228e7f1
7292 【2.0】【后端】前2次升星成功率定制
1个文件已修改
7 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py
@@ -121,7 +121,10 @@
    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
@@ -170,7 +173,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