From 81e17bea6f1dec0fd60c44ca22f3068e90d42969 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期一, 17 六月 2019 21:08:13 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py index f025542..85a2f01 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerActivity.py @@ -286,14 +286,15 @@ __SetPDictValue(curPlayer, ChConfig.Def_PDict_ActivityCanCostTotalPoint, min(IpyGameDataPY.GetFuncCfg('ImmortalDomainActivePoint'), curPoint + addValue)) return -def CostActivityPoint(curPlayer, costPoint): +def CostActivityPoint(curPlayer, costPoint, isOnlyCheck=False): # 消耗活跃点 curPoint = __GetPDictValue(curPlayer, ChConfig.Def_PDict_ActivityCanCostTotalPoint) if curPoint < costPoint: return - __SetPDictValue(curPlayer, ChConfig.Def_PDict_ActivityCanCostTotalPoint, - curPoint - costPoint) - SyncDailyActivityInfo(curPlayer) + if not isOnlyCheck: + __SetPDictValue(curPlayer, ChConfig.Def_PDict_ActivityCanCostTotalPoint, + curPoint - costPoint) + SyncDailyActivityInfo(curPlayer) return True ## 同步活跃度信息 -- Gitblit v1.8.0