From c154363456b25e8975e47f280df87dff65827495 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 09 一月 2026 20:59:30 +0800
Subject: [PATCH] 247 【付费内容】特权卡-服务端(增加游历体力上限特权

---
 Main/System/Invest/InvestModel.cs |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/Main/System/Invest/InvestModel.cs b/Main/System/Invest/InvestModel.cs
index 59445ca..0dfa8b1 100644
--- a/Main/System/Invest/InvestModel.cs
+++ b/Main/System/Invest/InvestModel.cs
@@ -1,4 +1,5 @@
-锘縰sing System;
+锘�
+using System;
 using System.Collections.Generic;
 using UnityEngine.UI;
 using System.Linq;
@@ -32,6 +33,8 @@
     Dictionary<int, int> m_InvestArenaMaxCnt = new Dictionary<int, int>();
     //绁濈鏍戣兘閲忓鍔犱笂闄�
     Dictionary<int, int> m_InvestAddBlessEnergyCount = new Dictionary<int, int>();
+    //娓稿巻浣撳姏涓婇檺
+    Dictionary<int, int> m_InvestAddTravelEnergyCount = new Dictionary<int, int>();
 
     // 鐗规潈鏉冮檺鏁伴噺
     Dictionary<int, int> m_PrivilegeLins = new Dictionary<int, int>();
@@ -98,6 +101,7 @@
         m_InvestFreeFBID = ConfigParse.ParseIntArrayDict(funcConfig.Numerical2);
         m_InvestArenaMaxCnt = ConfigParse.ParseIntDict(funcConfig.Numerical3);
         m_InvestAddBlessEnergyCount = ConfigParse.ParseIntDict(funcConfig.Numerical4);
+        m_InvestAddTravelEnergyCount = ConfigParse.ParseIntDict(funcConfig.Numerical5);
 
         funcConfig = FuncConfigConfig.Get("PrivilegeCard");
         m_PrivilegeLins = ConfigParse.ParseIntDict(funcConfig.Numerical1);
@@ -354,6 +358,21 @@
         return addCount;
     }
 
+    //澧炲姞娓稿巻浣撳姏涓婇檺
+    public int GetTravelAddEnergyMax()
+    {
+        int addCount = 0;
+        foreach (var item in m_InvestAddTravelEnergyCount)
+        {
+            if (!IsInvested(item.Key))
+            {
+                continue;
+            }
+            addCount += item.Value;
+        }
+        return addCount;
+    }
+
     //鏄惁婵�娲昏嫳闆勭Н鍒嗗彫鍞�
     public bool IsActiveHeroScoreCall()
     {

--
Gitblit v1.8.0