From 15e9d53205c4bb6ddee17e086297a2348d5b65fd Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期一, 17 六月 2019 10:27:15 +0800
Subject: [PATCH] 7292 【2.0】【后端】前2次升星成功率定制

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 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 c07efa9..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
@@ -122,9 +122,8 @@
     itemPack = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptItem)
     delEquipIndexList = []
     totalEquipStars = ChEquip.GetTotalEquipStars(curPlayer)
-    if totalEquipStars < IpyGameDataPY.GetFuncCfg('EquipStarCustomized'):
-        curRate = 100
-    elif not costEquipCnt:
+    
+    if not costEquipCnt:
         curRate = suitTotalRate / 2
     else:
         singleSuitRate = float(suitTotalRate) / costEquipCnt
@@ -148,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

--
Gitblit v1.8.0