From d7415e1acc3cfaae895597d889bf4f5d56d85ad0 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 31 七月 2023 16:34:55 +0800
Subject: [PATCH] 9788 【BT9】【后端】成就系统(新增成就类型164~175)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py
index b74c219..5becad8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py
@@ -218,16 +218,17 @@
     # 同步客户端
     Sycn_StoneHoleInfo(curPlayer, [equipPackIndex])
     # 成就
-    DoStoneSuccess(curPlayer)
+    DoStoneSuccess(curPlayer, classLV)
 
     EventShell.EventRespons_InlayStone(curPlayer)
     return
 
 
-def DoStoneSuccess(curPlayer):
+def DoStoneSuccess(curPlayer, classLV):
     #PlayerSuccess.ResetSuccessByType(curPlayer, ShareDefine.SuccType_InlayStone1)
     #PlayerSuccess.ResetSuccessByType(curPlayer, ShareDefine.SuccType_InlayStone2)
     totalStoneLV = 0
+    classStoneLV = 0
     holeIndexList = GetAllEquipPlaceHoleIndex()
     gameData = GameWorld.GetGameData()
     packType = IPY_GameWorld.rptEquip
@@ -252,10 +253,16 @@
             #    PlayerSuccess.DoAddSuccessProgress(curPlayer, ShareDefine.SuccType_InlayStone2, 1, [gemLV])
 
             totalStoneLV += gemLV
+            
+            ipyData = IpyGameDataPY.GetIpyGameDataByCondition('EquipPlaceIndexMap', {'GridIndex': equipIndex})
+            if ipyData and ipyData.GetClassLV() == classLV:
+                classStoneLV += gemLV
 
     # 记录开服活动宝石总等级
+    #GameWorld.DebugLog("classLV=%s,classStoneLV=%s,totalStoneLV=%s" % (classLV, classStoneLV, totalStoneLV))
     OpenServerCampaign.UpdOpenServerCampaignRecordData(curPlayer, ShareDefine.Def_Campaign_Type_StoneLV, totalStoneLV)
-    #PlayerSuccess.UptateSuccessProgress(curPlayer, ShareDefine.SuccType_StoneTotalLV, totalStoneLV)
+    PlayerSuccess.UptateSuccessProgress(curPlayer, ShareDefine.SuccType_StoneTotalLV, totalStoneLV)
+    PlayerSuccess.UptateSuccessProgress(curPlayer, ShareDefine.SuccType_EquipStoneClass, classStoneLV, [classLV])
     PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_Stone, totalStoneLV, False, True)
     return
 
@@ -497,7 +504,7 @@
     # 同步客户端
     Sycn_StoneHoleInfo(curPlayer, [equipPackIndex])
 
-    DoStoneSuccess(curPlayer)
+    DoStoneSuccess(curPlayer, classLV)
     return
 
 def __CheckStoneHoleCanUse(curPlayer, equipStar, holeIndex, equipPackType):

--
Gitblit v1.8.0