From c4f3b969f53b88e2e8a4340060dc4322eab5e9fc Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 12 三月 2025 15:15:14 +0800
Subject: [PATCH] 10416 【英文】【bt】【GM】【砍树】登录基金和幻境基金 完成后可以重置购买(重置关联的充值ID)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerZhanling.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerZhanling.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerZhanling.py
index ad3e140..516bebd 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerZhanling.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerZhanling.py
@@ -27,6 +27,7 @@
import ItemControler
import IPY_GameWorld
import PlayerGubao
+import PlayerCoin
import ChConfig
import time
@@ -144,6 +145,15 @@
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ZhanlingFinishTime % zhanlingType, 0)
SyncZhanlingInfo(curPlayer, zhanlingType)
+
+ # 顺便重置关联的充值ID
+ resetCTGIDList = []
+ zhanlingCTGIDDict = IpyGameDataPY.GetFuncEvalCfg("Zhanling", 1)
+ zhanlingCTGIDDictH = IpyGameDataPY.GetFuncEvalCfg("Zhanling", 3)
+ resetCTGIDList += zhanlingCTGIDDict.get(str(zhanlingType), [])
+ resetCTGIDList += zhanlingCTGIDDictH.get(str(zhanlingType), [])
+ if resetCTGIDList:
+ PlayerCoin.DoResetCTGCountByIDList(curPlayer, "ResetZhanling", resetCTGIDList)
return
def __giveUngetAward(curPlayer, zhanlingType, backValue, activeState, activeStateH):
--
Gitblit v1.8.0