From 9607567bac1c2c0bbff492c34545cc7a93d35ddf Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 15 十月 2019 18:15:19 +0800
Subject: [PATCH] 8262 【主干】【后端】仙盟宴会及传功优化(去除答对提示参数:仙盟贡献度)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddFBCnt.py | 18 +-----------------
1 files changed, 1 insertions(+), 17 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddFBCnt.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddFBCnt.py
index cceda39..b1adce6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddFBCnt.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_AddFBCnt.py
@@ -19,8 +19,6 @@
import FBCommon
import PlayerControl
import ChConfig
-import IpyGameDataPY
-import time
def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
##批量使用物品
@@ -28,7 +26,6 @@
curEff = curRoleItem.GetEffectByIndex(0)
mapID = curEff.GetEffectValue(0)
mapID = FBCommon.GetRecordMapID(mapID)
- oldMaxCnt = FBCommon.GetEnterFBMaxCnt(curPlayer, mapID)
itemAddCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID)
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ItemAddFbCnt % mapID, itemAddCnt+useCnt)
@@ -36,19 +33,6 @@
FBCommon.Sync_FBPlayerFBInfoData(curPlayer, mapID)
PlayerControl.NotifyCode(curPlayer, 'AddActivityCount_1', [itemTypeID, mapID, useCnt])
- #封魔坛次数超过上限时要记录倒计时剩余时间
- lastRegainTime = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FbCntRegainStartTime % mapID)
- if lastRegainTime:
- ipyData = FBCommon.GetFBIpyData(mapID)
- if ipyData:
- maxDayTimes = ipyData.GetDayTimes()
- enterCnt = FBCommon.GetEnterFBCount(curPlayer, mapID)
- if oldMaxCnt - enterCnt < maxDayTimes and oldMaxCnt - enterCnt + useCnt >= maxDayTimes:
- curTime = int(time.time())
- needTime = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FbCntRegainTotalTime % mapID)
- if not needTime:
- needTime = IpyGameDataPY.GetFuncCfg('FBCntRegainInterval')
- PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FbCntRegainTotalTime % mapID, needTime - (curTime-lastRegainTime))
- FBCommon.NotifyFBCntRegainInfo(curPlayer)
+ FBCommon.OnFBCountChangeEffectRecoverCount(curPlayer, mapID)
return True, useCnt
--
Gitblit v1.8.0