From 345583c976863943932363dde9ff4aab01f41e94 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 20 六月 2019 20:39:59 +0800
Subject: [PATCH] 7446 【后端】灵根称号修改为每级增加多少点

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py
index a28f8ec..45cb7d5 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py
+++ b/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
 

--
Gitblit v1.8.0