From 791cffdb8bbd408c3794709e23a31b4f6845a0bd Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 16 三月 2021 16:08:36 +0800
Subject: [PATCH] 8855 【主干】【BT2】【后端】活动通用逻辑,新增字段支持配置按世界等级开启(限时礼包支持)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py
index ad26787..455a187 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py
@@ -63,6 +63,8 @@
elif limitType == PlayerAttrFruit.Def_LimitType_Attr:
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_AttrFruitAddValue % itemID, 0)
+ curPlayer.SetDict(ChConfig.Def_PlayerKey_FruitFightPowerEx % (funcIndex), 0)
+
itemData = GameWorld.GetGameData().GetItemByTypeID(itemID)
# 重置该物品所加的属性值
if itemData:
@@ -77,7 +79,7 @@
curPlayer.SetDict(attrKey, 0)
if isGiveFruitItem:
- giveFruitItemList.append([itemID, ipyData.GetMaxUseCnt()])
+ giveFruitItemList.append([itemID, PlayerAttrFruit.GetMaxEatCnt(curPlayer, itemID)])
PlayerAttrFruit.Sync_AttrFruitEatCnt(curPlayer)
@@ -85,7 +87,7 @@
PlayerControl.PlayerControl(curPlayer).ReCalcAllState()
for itemID, itemCount in giveFruitItemList:
- if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, True, [IPY_GameWorld.rptItem]):
+ if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem]):
break
GameWorld.DebugAnswer(curPlayer, "OK!")
return
--
Gitblit v1.8.0