| | |
| | | using System; |
| | | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using UnityEngine.UI; |
| | | using System.Linq; |
| | |
| | | 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>(); |
| | |
| | | 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); |
| | |
| | | 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() |
| | | { |