From f06c8518c8374439c5d607505c24f1e4b8546ce4 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 30 十月 2018 20:26:02 +0800
Subject: [PATCH] 4418 宴会答题超时提示加参数
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWishingWell.py | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWishingWell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWishingWell.py
index 4736a3a..0ade701 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWishingWell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerWishingWell.py
@@ -73,11 +73,14 @@
if actCostRebateInfo.get(ShareDefine.ActKey_State):
SyncWishingWellInfo(curPlayer)
SyncWishingWellPlayerInfo(curPlayer)
+ elif __GetItemInfoByData(curPlayer, WellType_Get, 0)[0]:
+ SyncWishingWellPlayerInfo(curPlayer)
return
def OnDay(curPlayer):
actCostRebateInfo = PyGameData.g_operationActionDict.get(ShareDefine.OperationActionName_WishingWell, {})
if not actCostRebateInfo.get(ShareDefine.ActKey_State):
+ PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_WishingWellFreeTime, 0)
__SendWishingWellMail(curPlayer, int(time.time()))
return
@@ -121,10 +124,11 @@
if state:
g_randomWellDict = {}
g_specialMarkDict = {}
+ PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_WishingWellRefreshCnt, 0)
__DoActWishingRefresh(curPlayer, 1, True)
SyncWishingWellInfo(curPlayer)
- SyncWishingWellPlayerInfo(curPlayer)
+ SyncWishingWellPlayerInfo(curPlayer)
return True
@@ -162,10 +166,13 @@
mailItemList.append([itemID, itemCnt, isBind])
__SetItemData(curPlayer, WellType_Result, i, 0, 0, 0, 0)
j +=1
-
+ if state > 0:
+ isOver = False
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_WishingWellAwardTime, 0 if isOver else curTime)
if mailItemList:
PlayerControl.SendMailByKey('WishPool', [curPlayer.GetID()], mailItemList)
+ if state == -1:
+ SyncWishingWellPlayerInfo(curPlayer)
GameWorld.DebugLog('许愿池距离时间 passDay=%s,mailItemList=%s,saveItemList=%s,isOver=%s'%(passDay, mailItemList, saveItemList, isOver), curPlayer.GetID())
return
--
Gitblit v1.8.0