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/Player/PlayerTJG.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTJG.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTJG.py
index 0e7a045..0dccd66 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTJG.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTJG.py
@@ -67,6 +67,15 @@
 ]
 
 Def_EatSpace = 5    # 低于X格自动吞噬
+
+
+def DoTJGOpen(curPlayer):
+    ##脱机挂功能开启 赠送脱机时间
+    addTime = IpyGameDataPY.GetFuncCfg('TJGGiftTime')
+    AddTJGTime(curPlayer, addTime)
+    GameWorld.DebugLog('脱机挂功能开启 赠送脱机时间 %s'%addTime, curPlayer.GetID())
+    return
+
 #===============================================================================
 # //B2 01 脱机挂状态 # tagCMLoginState
 # struct    tagCMLoginState

--
Gitblit v1.8.0