From e5353bd8a09e4a134ad18f0a8855770669cf43bb Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 03 九月 2025 15:22:55 +0800
Subject: [PATCH] 198 【内政】淘金系统-服务端

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py |   83 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 83 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 7617b0e..8f9d297 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
@@ -2668,6 +2668,28 @@
                         ("DWORD", "LVUPNeedTime", 0),
                         ("list", "EquipColorRateList", 0),
                         ),
+
+                "GoldRushCamp":(
+                        ("BYTE", "CampID", 1),
+                        ("WORD", "PanningUnlock", 0),
+                        ("list", "MoneyUnlock", 0),
+                        ),
+
+                "GoldRushWorker":(
+                        ("BYTE", "WorkerID", 1),
+                        ("WORD", "PlayerLVUnlock", 0),
+                        ("list", "MoneyUnlock", 0),
+                        ),
+
+                "GoldRushItem":(
+                        ("BYTE", "GoldID", 1),
+                        ("DWORD", "ItemID", 0),
+                        ("BYTE", "ItemLV", 0),
+                        ("DWORD", "ItemCount", 0),
+                        ("DWORD", "RefreshWeight", 0),
+                        ("BYTE", "WorkerMax", 0),
+                        ("BYTE", "NeedSeconds", 0),
+                        ),
                 }
 
 
@@ -6639,6 +6661,43 @@
     def GetLVUPNeedMoney(self): return self.attrTuple[1] # 升到下一级所需货币数 DWORD
     def GetLVUPNeedTime(self): return self.attrTuple[2] # 升级下一级所需所需秒 DWORD
     def GetEquipColorRateList(self): return self.attrTuple[3] # 产出装备品质概率列表,[0品质万分率, 1品质万分率, ...] list
+
+# 淘金营地表
+class IPY_GoldRushCamp():
+    
+    def __init__(self):
+        self.attrTuple = None
+        return
+        
+    def GetCampID(self): return self.attrTuple[0] # BYTE
+    def GetPanningUnlock(self): return self.attrTuple[1] # 淘金次数解锁 WORD
+    def GetMoneyUnlock(self): return self.attrTuple[2] # 货币解锁,货币类型|货币值 list
+
+# 淘金监工表
+class IPY_GoldRushWorker():
+    
+    def __init__(self):
+        self.attrTuple = None
+        return
+        
+    def GetWorkerID(self): return self.attrTuple[0] # BYTE
+    def GetPlayerLVUnlock(self): return self.attrTuple[1] # 主公等级解锁 WORD
+    def GetMoneyUnlock(self): return self.attrTuple[2] # 货币解锁,货币类型|货币值 list
+
+# 淘金物品表
+class IPY_GoldRushItem():
+    
+    def __init__(self):
+        self.attrTuple = None
+        return
+        
+    def GetGoldID(self): return self.attrTuple[0] # 淘金ID BYTE
+    def GetItemID(self): return self.attrTuple[1] # 物品ID DWORD
+    def GetItemLV(self): return self.attrTuple[2] # 物品等级 BYTE
+    def GetItemCount(self): return self.attrTuple[3] # 物品个数 DWORD
+    def GetRefreshWeight(self): return self.attrTuple[4] # 常规刷新权重 DWORD
+    def GetWorkerMax(self): return self.attrTuple[5] # 监工上限 BYTE
+    def GetNeedSeconds(self): return self.attrTuple[6] # 耗时秒 BYTE
 
 
 def Log(msg, playerID=0, par=0):
@@ -6962,6 +7021,9 @@
         self.__LoadFileData("Xiangong", onlyCheck)
         self.__LoadFileData("TiandaoTree", onlyCheck)
         self.__LoadFileData("TreeLV", onlyCheck)
+        self.__LoadFileData("GoldRushCamp", onlyCheck)
+        self.__LoadFileData("GoldRushWorker", onlyCheck)
+        self.__LoadFileData("GoldRushItem", onlyCheck)
         Log("IPY_DataMgr ReloadOK! onlyCheck=%s" % onlyCheck)
         return
     
@@ -9041,6 +9103,27 @@
     def GetTreeLVByIndex(self, index):
         self.CheckLoadData("TreeLV")
         return self.ipyTreeLVCache[index]
+
+    def GetGoldRushCampCount(self):
+        self.CheckLoadData("GoldRushCamp")
+        return self.ipyGoldRushCampLen
+    def GetGoldRushCampByIndex(self, index):
+        self.CheckLoadData("GoldRushCamp")
+        return self.ipyGoldRushCampCache[index]
+
+    def GetGoldRushWorkerCount(self):
+        self.CheckLoadData("GoldRushWorker")
+        return self.ipyGoldRushWorkerLen
+    def GetGoldRushWorkerByIndex(self, index):
+        self.CheckLoadData("GoldRushWorker")
+        return self.ipyGoldRushWorkerCache[index]
+
+    def GetGoldRushItemCount(self):
+        self.CheckLoadData("GoldRushItem")
+        return self.ipyGoldRushItemLen
+    def GetGoldRushItemByIndex(self, index):
+        self.CheckLoadData("GoldRushItem")
+        return self.ipyGoldRushItemCache[index]
 
 IPYData = IPY_DataMgr()
 def IPY_Data(): return IPYData

--
Gitblit v1.8.0