| | |
| | | public const int DATA_MAPID = 21110; |
| | | |
| | | int m_SelectedBoss = 0; |
| | | public int selectedBoss |
| | | { |
| | | get |
| | | { |
| | | public int selectedBoss { |
| | | get { |
| | | return this.m_SelectedBoss; |
| | | } |
| | | set |
| | | { |
| | | set { |
| | | if (this.m_SelectedBoss != value) |
| | | { |
| | | this.m_SelectedBoss = value; |
| | |
| | | } |
| | | |
| | | int m_WearyValue = 0; |
| | | public int wearyValue |
| | | { |
| | | public int wearyValue { |
| | | get { return m_WearyValue; } |
| | | set |
| | | { |
| | | set { |
| | | if (m_WearyValue != value) |
| | | { |
| | | m_WearyValue = value; |
| | |
| | | } |
| | | |
| | | int m_BigBoxCollectCount = 0; |
| | | public int bigBoxCollectCount |
| | | { |
| | | public int bigBoxCollectCount { |
| | | get { return m_BigBoxCollectCount; } |
| | | set |
| | | { |
| | | set { |
| | | if (m_BigBoxCollectCount != value) |
| | | { |
| | | m_BigBoxCollectCount = value; |
| | |
| | | } |
| | | |
| | | int m_SmallBoxCollectCount = 0; |
| | | public int smallBoxCollectCount |
| | | { |
| | | public int smallBoxCollectCount { |
| | | get { return m_SmallBoxCollectCount; } |
| | | set { m_SmallBoxCollectCount = value; } |
| | | } |
| | |
| | | |
| | | public void UpdateBoxOrEliteRefreshTime(HA904_tagGCDogzNPCRefreshTime _refreshTimes) |
| | | { |
| | | var containBox = false; |
| | | var boxRefreshSecond = 0; |
| | | |
| | | var containElite = false; |
| | | var eliteRefreshSecond = 0; |
| | | |
| | | for (int i = 0; i < _refreshTimes.InfoList.Length; i++) |
| | | { |
| | | var info = _refreshTimes.InfoList[i]; |
| | | if (bigBoxNpcId == info.NPCID || smallBoxNpcId == info.NPCID) |
| | | { |
| | | dogzDungeonBox.UpdateBoxRefreshTime((int)info.RefreshSecond); |
| | | RequestBoxSurplusInfo(); |
| | | containBox = true; |
| | | boxRefreshSecond = (int)info.RefreshSecond; |
| | | } |
| | | |
| | | if (eliteMonsters.Contains((int)info.NPCID)) |
| | | { |
| | | dogzDungeonElite.UpdateEliteRefreshTime((int)info.RefreshSecond); |
| | | containElite = true; |
| | | eliteRefreshSecond = (int)info.RefreshSecond; |
| | | } |
| | | } |
| | | |
| | | if (containBox) |
| | | { |
| | | dogzDungeonBox.UpdateBoxRefreshTime(boxRefreshSecond); |
| | | } |
| | | |
| | | if (containElite) |
| | | { |
| | | dogzDungeonElite.UpdateEliteRefreshTime(eliteRefreshSecond); |
| | | } |
| | | |
| | | if (WindowCenter.Instance.CheckOpen("DogzDungeonWin")) |
| | | { |
| | | if (containBox) |
| | | { |
| | | RequestBoxSurplusInfo(); |
| | | } |
| | | |
| | | if (containElite) |
| | | { |
| | | RequestEliteSurplusInfo(); |
| | | } |
| | | } |
| | |
| | | public class DogzDungeonElite |
| | | { |
| | | public Dictionary<int, int> eliteCounts = new Dictionary<int, int>(); |
| | | public int eliteSurplus |
| | | { |
| | | get |
| | | { |
| | | public int eliteSurplus { |
| | | get { |
| | | var count = 0; |
| | | foreach (var eliteCount in eliteCounts.Values) |
| | | { |
| | |
| | | public class DogzDungeonBossData |
| | | { |
| | | public int id { get; private set; } |
| | | public bool isUnLocked |
| | | { |
| | | get |
| | | { |
| | | public bool isUnLocked { |
| | | get { |
| | | var config = Config.Instance.Get<NPCConfig>(id); |
| | | return PlayerDatas.Instance.baseData.LV >= config.NPCLV; |
| | | } |