From f2aeecf0a02b97418b762bd6ee518c33d3ae2685 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 12 九月 2025 10:22:35 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(新增演武场;支持机器人;支持PVP战斗;每场战斗结束后支持查看战斗回放;榜单优化存储玩家形象Value5;主线关卡榜支持;支持查看玩家;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
index 861ba0c..a7b8e5e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
@@ -2565,6 +2565,11 @@
                         ("BYTE", "WorkerMax", 0),
                         ("BYTE", "NeedSeconds", 0),
                         ),
+
+                "Robot":(
+                        ("DWORD", "ID", 1),
+                        ("char", "ViewCache", 0),
+                        ),
                 }
 
 
@@ -6388,6 +6393,16 @@
     def GetRefreshWeight(self): return self.attrTuple[4] # 常规刷新权重 DWORD
     def GetWorkerMax(self): return self.attrTuple[5] # 监工上限 BYTE
     def GetNeedSeconds(self): return self.attrTuple[6] # 耗时秒 BYTE
+
+# 机器人
+class IPY_Robot():
+    
+    def __init__(self):
+        self.attrTuple = None
+        return
+        
+    def GetID(self): return self.attrTuple[0] # 机器人ID,同玩家ID DWORD
+    def GetViewCache(self): return self.attrTuple[1] # 机器人缓存 char
 
 
 def Log(msg, playerID=0, par=0):
@@ -6702,6 +6717,7 @@
         self.__LoadFileData("GoldRushCamp", onlyCheck)
         self.__LoadFileData("GoldRushWorker", onlyCheck)
         self.__LoadFileData("GoldRushItem", onlyCheck)
+        self.__LoadFileData("Robot", onlyCheck)
         Log("IPY_DataMgr ReloadOK! onlyCheck=%s" % onlyCheck)
         return
     
@@ -8718,6 +8734,13 @@
     def GetGoldRushItemByIndex(self, index):
         self.CheckLoadData("GoldRushItem")
         return self.ipyGoldRushItemCache[index]
+
+    def GetRobotCount(self):
+        self.CheckLoadData("Robot")
+        return self.ipyRobotLen
+    def GetRobotByIndex(self, index):
+        self.CheckLoadData("Robot")
+        return self.ipyRobotCache[index]
 
 IPYData = IPY_DataMgr()
 def IPY_Data(): return IPYData

--
Gitblit v1.8.0