From 3e2a34a04bc4a8a2827ca0407a0f7635bce56722 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期四, 27 十一月 2025 11:45:36 +0800
Subject: [PATCH] 362 【付费内容】特权卡-补充 支持配表设置跳过战斗

---
 Main/System/Battle/BattleManager.cs |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/Main/System/Battle/BattleManager.cs b/Main/System/Battle/BattleManager.cs
index 2d4093e..6257ef5 100644
--- a/Main/System/Battle/BattleManager.cs
+++ b/Main/System/Battle/BattleManager.cs
@@ -26,7 +26,11 @@
     }
     public readonly int[] speedIndexfuncIdArr = new int[] { 34, 35, 36 };  // 鎴樻枟鍊嶆暟瀵瑰簲鐨勫姛鑳絀D
     public readonly int passFuncId = 33;    // 璺宠繃鎴樻枟瀵瑰簲鐨勫姛鑳絀D
-    public int passRound;   // 瓒呰繃X鍥炲悎鍙烦杩�
+
+    public int defaultPassRound;   
+    public Dictionary<int, int> passDict = new Dictionary<int, int>(); 
+    public Dictionary<int, int> foreverPrivilegePassDict = new Dictionary<int, int>();
+
     public int fightGuideID;
     public int fightGuideMainLevelLimit;
     public int fightGuideNoClickSeconds;
@@ -46,7 +50,7 @@
         DTC0403_tagPlayerLoginLoadOK.playerLoginOkEvent += OnPlayerLoginOk;
         DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += BeforePlayerInit;
         ParseConfig();
-        
+
     }
 
     void ParseConfig()
@@ -61,7 +65,9 @@
         challengeBossGuides = JsonMapper.ToObject<int[]>(config.Numerical4);
 
         config = FuncConfigConfig.Get("BattleButton");
-        passRound= int.Parse(config.Numerical1);
+        defaultPassRound = int.Parse(config.Numerical1);
+        passDict = ConfigParse.ParseIntDict(config.Numerical2);
+        foreverPrivilegePassDict = ConfigParse.ParseIntDict(config.Numerical3);
     }
 
 
@@ -269,9 +275,9 @@
             packQueue.Enqueue(pack);
         }
 
-    
 
-            // packQueue = new Queue<GameNetPackBasic>(newPackList);
+
+        // packQueue = new Queue<GameNetPackBasic>(newPackList);
 
         DistributeNextPackage();
     }

--
Gitblit v1.8.0