From c22841b91403a0915ba04a8b616088568ced6481 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 31 十月 2018 17:19:45 +0800
Subject: [PATCH] 4495 【后端】【1.2.0】中立地图之中,每隔X时间额外获得挂机经验  4477 【后端】【1.2.0】开启离线挂机功能后,系统默认赠送10个小时离线挂机时间(无需使用道具)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py
index 6da20b6..ab964ba 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py
@@ -438,8 +438,9 @@
         reLV = curPlayer.GetLV()
         worldlv = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv)
         giveLV = eval(IpyGameDataPY.GetFuncCompileCfg('FamilyPartySitAward', 2))
+        addExp = 0
         if giveLV:
-            Item_AddLV.DoAddLVEx(curPlayer, giveLV, True, True, 0)
+            addExp = Item_AddLV.DoAddLVEx(curPlayer, giveLV, True, True, 0)
         reLV = curPlayer.GetLV()
         reExp = PlayerControl.GetPlayerReExp(curPlayer)
         giveExp = eval(IpyGameDataPY.GetFuncCompileCfg('FamilyPartySitAward'))
@@ -447,7 +448,7 @@
             PlayerControl.PlayerControl(curPlayer).AddExp(giveExp)
             exp = gameWorld.GetGameWorldDictByKey(FBPlayerDict_TotalExp % playerID)
             expPoint = gameWorld.GetGameWorldDictByKey(FBPlayerDict_TotalExpPoint % playerID)
-            newTotalExp = expPoint*ChConfig.Def_PerPointValue+exp+giveExp
+            newTotalExp = expPoint*ChConfig.Def_PerPointValue+exp+giveExp+addExp
             gameWorld.SetGameWorldDict(FBPlayerDict_TotalExp % playerID, newTotalExp%ChConfig.Def_PerPointValue)
             gameWorld.SetGameWorldDict(FBPlayerDict_TotalExpPoint % playerID, newTotalExp/ChConfig.Def_PerPointValue)
             

--
Gitblit v1.8.0