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

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStar.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 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..c07efa9 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,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
 

--
Gitblit v1.8.0