From 37a0a0bba170701ee91b15c668b97b5b47a53289 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 26 十一月 2018 21:21:02 +0800
Subject: [PATCH] 4762 【后端】组队助战类型副本助战修改(混乱妖域);宗门、渡劫、娲皇、混乱妖域结算增加同步获得仙缘币信息;增加每日助战登记修行点; 召唤成功增加同步职业信息;

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py |   46 ++++++++++------------------------------------
 1 files changed, 10 insertions(+), 36 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
index afaf44b..c3f52d5 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py
@@ -86,6 +86,7 @@
 Over_extrScore = 'extrScore' #已获得额外积分
 Over_enterLV = 'enterLV' #进入时等级
 Over_leaderID = 'leaderID' #渡劫玩家ID
+Over_xianyuanCoin = 'xianyuanCoin' #获得仙缘币信息 [获得仙缘币数, 没有获得的原因] 原因: 1-达到助战次数上限,2-达到每日获得仙缘币上限
 
 #副本行为
 (
@@ -1547,35 +1548,6 @@
     ##获取是否助战
     return GameWorld.GetGameFB().GetPlayerGameFBDictByKey(curPlayer.GetID(), ChConfig.FBPlayerDict_IsHelpFight)
 
-
-def AddFBHelpPoint(curPlayer, mapID, addFBCnt=1):
-    ##增加副本助战积分
-    PlayerControl.NotifyCode(curPlayer, 'TodayNoDungeonReward')
-    fbIpyData = GetFBIpyData(mapID)
-    helpPoint = fbIpyData.GetHelpPoint()
-    if not helpPoint:
-        return 0
-    #任务
-    EventShell.EventRespons_FBEvent(curPlayer, 'fbhelp')
-    EventShell.EventRespons_FBEvent(curPlayer, 'fbhelp_%s'%mapID)
-    # 每日活动
-    PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_FBHelp)
-    addHelpPoint = helpPoint * addFBCnt
-    dayMaxPoint = IpyGameDataPY.GetFuncCfg('DungeonIntegral')
-    curDayPoint = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FBHelpPointCntDay)
-    if curDayPoint >= dayMaxPoint:
-        PlayerControl.NotifyCode(curPlayer, 'AssistantIntegralFull')
-        return 0
-    addHelpPoint = min(addHelpPoint, dayMaxPoint-curDayPoint)
-    updHelpPoint = curDayPoint+addHelpPoint
-    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FBHelpPointCntDay, updHelpPoint)
-    curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_DayFBHelpPoint, updHelpPoint, False)
-    
-    PlayerControl.GiveMoney(curPlayer, ShareDefine.TYPE_Price_FBHelpPoint, addHelpPoint, isSysHint=False)
-    PlayerControl.NotifyCode(curPlayer, 'AssistantIntegral', [addHelpPoint])
-    GameWorld.DebugLog("    增加副本助战积分!mapID=%s, addHelpPoint=%s"%(mapID, addHelpPoint), curPlayer.GetID())
-    return addHelpPoint
-
 def FBOnWeek(curPlayer, onWeekType):
     
     mapIDInfo = []
@@ -1614,6 +1586,14 @@
     for i in xrange(ipyDataMgr.GetFBFuncCount()):
         ipyData = ipyDataMgr.GetFBFuncByIndex(i)
         mapID = ipyData.GetDataMapID()
+        
+        # 有真实助战次数奖励限制的
+        if ipyData.GetDayHelpCountMax():
+            helpCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_FBRealHelpCount % mapID)
+            if helpCount:
+                PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_FBRealHelpCount % mapID, 0)
+                GameWorld.DebugLog("重置日助战奖励次数限制!mapID=%s" % mapID)
+                
         dayTimes = ipyData.GetDayTimes()
         # 没有日次数限制的不处理
         if not dayTimes and not ipyData.GetBuyTimesVIPPriID() and not ipyData.GetExtraTimesVIPPriID() and not ipyData.GetExtraTimesMWPriID():
@@ -1662,10 +1642,6 @@
         Sync_FBPlayerFBInfoData(curPlayer, mapIDInfo)
         Sync_FBPlayerFBBuyCount(curPlayer, mapIDInfo)
     
-    #重置每日获得的助战积分
-    if onDayType ==ShareDefine.Def_OnEventTypeEx:
-        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FBHelpPointCntDay, 0)
-        curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_DayFBHelpPoint, 0, False)
     return
 
 ## 玩家通用副本登录处理
@@ -1680,10 +1656,8 @@
     NotifyFBCntRegainInfo(curPlayer)
     #判断副本里离线超过一定时间则退出副本
     CheckFBPlayerOffine(curPlayer)
-    #通知助战点数
-    curDayPoint = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FBHelpPointCntDay)
-    curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_DayFBHelpPoint, curDayPoint, False)
     return
+
 def CheckFBPlayerOffine(curPlayer):
     mapid = curPlayer.GetMapID()
     

--
Gitblit v1.8.0