From c35e176a3b05f745600c6e60f168313d2b9e7b30 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 17 九月 2025 12:00:19 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(司马懿技能;增加按层级结算持续buff效果5003;增加非按攻击力计算伤害支持;技能伤害增加可限制最大攻击力百分比上限配置;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py |   93 ++--------------------------------------------
 1 files changed, 5 insertions(+), 88 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
index 6fdfaca..ff7014e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
@@ -41,7 +41,6 @@
 import GameWorld
 import ChConfig
 import CommFunc
-import PlayerTJG
 
 import datetime
 import random
@@ -601,14 +600,11 @@
 # 离线数据
 def WriteEvent_session(curPlayer):
     seconds = 0
-    if PlayerTJG.GetIsTJG(curPlayer):
-        return
-    else:
-        logoffTimeStr = curPlayer.GetLogoffTime().strip()
-        loginTimeStr = curPlayer.GetLoginTime().strip()
-        if logoffTimeStr and loginTimeStr:
-            passTimes = GameWorld.GetDateTimeByStr(logoffTimeStr) - GameWorld.GetDateTimeByStr(loginTimeStr)
-            seconds = passTimes.seconds
+    logoffTimeStr = curPlayer.GetLogoffTime().strip()
+    loginTimeStr = curPlayer.GetLoginTime().strip()
+    if logoffTimeStr and loginTimeStr:
+        passTimes = GameWorld.GetDateTimeByStr(logoffTimeStr) - GameWorld.GetDateTimeByStr(loginTimeStr)
+        seconds = passTimes.seconds
     EventReport(ShareDefine.Def_UserAction_Session, "OnlineTime=%s&SessionID=%s"%(seconds, GameWorld.GetSessionID(curPlayer)), curPlayer)
     #===========================================================================
     # sessionEvent = session()
@@ -726,13 +722,6 @@
     missionName = missionData.ID
     __WriteEvent_mission_log(curPlayer, startType, missionName, isFinish, failReason)
     return
-
-def WriteFuncCMEAcceptable(curPlayer, funcID):
-    return
-    if funcID not in ChConfig.FuncCMEDict:
-        return
-    WriteEvent_custom_mission_log(curPlayer, ChConfig.FuncCMEDict[funcID], ChConfig.CME_Log_Acceptable)
-    return True
 
 def WriteEvent_MWSuccess(curPlayer, mwID, succID, logType, isFinish=0):
     '''写自定义任务 - 法宝成就事件, 事件ID格式:  91+法宝ID+至少4位的成就ID
@@ -896,78 +885,6 @@
     # customEvent.chr_level = GetScribeEvent_chr_level(curPlayer)
     # customEvent.comments = CommFunc.GetStrCutoff(comments, 255)
     # WriteEvent(customEvent)
-    #===========================================================================
-    return
-
-#// A1 01 玩家电脑信息 #tagCMPCInfo
-#
-#struct tagCMPCInfo
-#{
-#    tagHead        Head;
-#    BYTE        PCOSLen; 
-#    char        PCOS[PCOSLen];    // 操作系统
-#    BYTE        ResolutionLen; 
-#    char        Resolution[ResolutionLen];    // 分辨率
-#    BYTE        BrowserLen; 
-#    char        Browser[BrowserLen];    // 浏览器
-#    BYTE        ScribeTypeLen; 
-#    char        ScribeType[ScribeTypeLen];    // 记录类型
-#    BYTE        ScribeDataLen; 
-#    char        ScribeData[ScribeDataLen];    // 记录扩展信息
-#};
-def ReceiveClientPCInfo(index, clientData, tick):
-    #===========================================================================
-    # curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
-    # PCOS = clientData.PCOS
-    # Resolution = clientData.Resolution
-    # Browser = clientData.Browser
-    # ScribeType = clientData.ScribeType
-    # #ScribeData = clientData.ScribeData
-    # 
-    # GameWorld.DebugLog("ReceiveClientPCInfo %s" % ScribeType)
-    # GameWorld.DebugLog("    PCOS=%s" % PCOS)
-    # GameWorld.DebugLog("    Resolution=%s" % Resolution)
-    # GameWorld.DebugLog("    Browser=%s" % Browser)
-    # 
-    # # 转化为对方所需格式
-    # if PCOS and "Windows" in PCOS:
-    #    PCOS = " ".join(PCOS.split(" ")[:2])
-    # 
-    # # 转化为对方所需格式
-    # if Resolution:
-    #    Resolution = "%s*%s" % eval(Resolution)
-    # 
-    # if ScribeType == ShareDefine.Def_UserAction_Login:
-    #    firstLogin = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FirstLogin)
-    #    if not firstLogin:
-    #        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_FirstLogin, 1)
-    #        WriteEvent_entry_firstlogin(curPlayer, Browser, Resolution, PCOS)
-    #        if curPlayer.GetLV() == 1:
-    #            WriteEvent_level_up(curPlayer) # 首登发送一次1级数据
-    #        GameWorld.DebugLog("    entry_firstlogin")
-    #        
-    #    WriteEvent_login(curPlayer, Browser, Resolution, PCOS)
-    #===========================================================================
-            
-    return
-
-#// A2 19 游戏建议收集 #tagCMAdviceSubmit
-#
-#struct    tagCMAdviceSubmit
-#{
-#    tagHead        Head;
-#    BYTE        Type;        //提交类型
-#    WORD        Len;
-#    char        Content[Len];    //size = Len
-#};
-def OnSubmitBugSuggest(index, clientData, tick):
-    #===========================================================================
-    # curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
-    # subType = clientData.Type
-    # content = clientData.Content
-    # eventName = Def_Custom_Events_Bug if subType == 0 else Def_Custom_Events_Suggest
-    # WriteEvent_custom_events(curPlayer, eventName, content)
-    # DataRecordPack.DR_BugSuggest(curPlayer, eventName, content)
     #===========================================================================
     return
 

--
Gitblit v1.8.0