From 8a0a844c31126b274f268fe5333c19aef50dd0f8 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 11 十二月 2024 14:55:42 +0800 Subject: [PATCH] 10297 【越南】【英语】【砍树】【tqxbqy】轮回殿-服务端(轮回殿活动时间表增加配置轮回类型对应的CTGID跟商店类型) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActLunhuidian.py | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActLunhuidian.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActLunhuidian.py index 91d5b4a..bff9a97 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActLunhuidian.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActLunhuidian.py @@ -20,8 +20,10 @@ import PlayerControl import IpyGameDataPY import ChPyNetSendPack +import FunctionNPCCommon import NetPackCommon import ItemControler +import PlayerCoin import GameWorld import ChConfig @@ -88,11 +90,22 @@ ipyData = IpyGameDataPY.GetIpyGameData("ActLunhuidian", cfgID) if ipyData: roundSetDict = ipyData.GetRoundSetInfo() + ctgIDDict = ipyData.GetRoundCTGIDInfo() + shopTypeDict = ipyData.GetRoundShopTypeInfo() + resetCTGIDList, resetShopTypeList = [], [] for roundType in roundSetDict.keys(): PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ActLunhuidianValue % (actNum, roundType), 0) PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ActLunhuidianRound % (actNum, roundType), 1) # 从第1轮开始 PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_ActLunhuidianAward % (actNum, roundType), 0) Sync_ActLunhuidianPlayerInfo(curPlayer, actNum, roundType) + resetCTGIDList += ctgIDDict.get(roundType, []) + shopType = shopTypeDict.get(roundType, 0) + if shopType and shopType not in resetShopTypeList: + resetShopTypeList.append(shopType) + + PlayerCoin.DoResetCTGCountByIDList(curPlayer, "ActLunhuidian", resetCTGIDList) + FunctionNPCCommon.ResetShopItemBuyCountByShopType(curPlayer, resetShopTypeList) + return True def GetRoundSetValue(roundSet, setIndex): return roundSet[setIndex] if len(roundSet) > setIndex else 0 @@ -238,6 +251,8 @@ clientPack.LimitLV = ipyData.GetLVLimit() roundSetDict = ipyData.GetRoundSetInfo() + ctgIDDict = ipyData.GetRoundCTGIDInfo() + shopTypeDict = ipyData.GetRoundShopTypeInfo() for roundType, roundSet in roundSetDict.items(): roundInfo = ChPyNetSendPack.tagMCActLunhuidianRound() roundInfo.RoundType = roundType @@ -262,6 +277,9 @@ roundInfo.AwardList.append(award) roundInfo.AwardCount = len(roundInfo.AwardList) + roundInfo.CTGIDList = ctgIDDict.get(roundType, []) + roundInfo.CTGIDCount = len(roundInfo.CTGIDList) + roundInfo.ShopType = shopTypeDict.get(roundType, 0) clientPack.RoundList.append(roundInfo) clientPack.RoundCount = len(clientPack.RoundList) -- Gitblit v1.8.0