From 655b974b55976ccec7b616993584b6c672ddc986 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 11 一月 2020 18:33:40 +0800
Subject: [PATCH] 8364 【恺英】【后端】缥缈随机任务(缥缈寻访消耗改为扣日常次数)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
index 622ab38..e78223e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFairyDomain.py
@@ -113,8 +113,6 @@
 #    BYTE        Type;    //0-开始寻访 1-结束寻访
 #};
 def OnVisitFairyDomain(index, clientData, tick):
-    # 活跃消耗改为放置,缥缈待修改,暂屏蔽
-    return
     curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
     
     otherCntRateList = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 2)
@@ -139,11 +137,11 @@
     if fairyDomainState == 1:
         GameWorld.DebugLog("    正在寻访仙域中!请先退出寻访")
         return
-    costPoint = IpyGameDataPY.GetFuncCfg('ImmortalDomainActivePoint', 2)
-    if not PlayerActivity.CostActivityPoint(curPlayer, costPoint, True):
-        GameWorld.DebugLog("    寻访仙域需要活跃点不足!costPoint=%s"%costPoint)
+    remainCnt = PlayerActivity.GetDailyActionrRemainCnt(curPlayer, dailyID)
+    if not remainCnt:
+        GameWorld.DebugLog("    没有寻访次数了!")
         return
-
+    
     #随机事件 重置事件状态
     visitCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FairyDomainVisitCnt)
     appointIpyDataList = IpyGameDataPY.GetIpyGameDataListNotLog('FairyDomainAppoint', visitCnt + 1)
@@ -194,7 +192,9 @@
         GameWorld.Log('寻访仙域, 没有随机出事件,使用默认事件!! playerLV=%s,visitCnt=%s,默认fdEventIDList=%s'%(curPlayer.GetLV(), visitCnt, fdEventIDList), curPlayer.GetID())
         if not fdEventIDList:
             return
-    PlayerActivity.CostActivityPoint(curPlayer, costPoint)
+    if not PlayerActivity.AddDailyActionFinishCnt(curPlayer, dailyID):
+        return
+    
     #奇遇事件 随机档位数据
     openServerDay = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_ServerDay) + 1
     for fdEventID in fdEventIDList:
@@ -381,7 +381,7 @@
 def GetMaxEventCnt():
     # 最大可出现事件个数
     otherCntRateList = IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 2)
-    maxEventCnt = max([info[1] for info in otherCntRateList]) + len(IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain'))
+    maxEventCnt = max([info[1] for info in otherCntRateList]) + len(IpyGameDataPY.GetFuncEvalCfg('ImmortalDomain', 1, {}))
     return maxEventCnt
 
 ###=========================奇遇===============================

--
Gitblit v1.8.0