少年修仙传客户端代码仓库
client_Wu Xijin
2019-05-27 2dedbe54f91f780a5344a53e2df7eebe4d295fde
System/FindPrecious/DemonJarModel.cs
@@ -17,8 +17,8 @@
    {
        public const int TOTALTIME_LIMIT = 5;
        public const int DEMONJAR_SINGLEMAPID = 52020;
        public const int DEMONJAR_MAPID = 52010;
        public const int SINGLEMAPID = 52020;
        public const int DATA_MAPID = 52010;
        public const int DEMONJAR_REDPOINTID = 77001;
        public Redpoint redpoint = new Redpoint(FindPreciousModel.FINDPRECIOUS_REDPOINTID, DEMONJAR_REDPOINTID);
@@ -166,7 +166,7 @@
                var bossId = sortedBossIds[i];
                var config = DemonJarConfig.Get(bossId);
                var grade = dungeonModel.GetGrade(new Dungeon(DEMONJAR_MAPID, config.LineID));
                var grade = dungeonModel.GetGrade(new Dungeon(DATA_MAPID, config.LineID));
                if (config.CanEnterTimes > 0 && grade > 0)
                {
                    continue;
@@ -221,8 +221,8 @@
        public int GetSurplusTimes()
        {
            var totalTimes = dungeonModel.GetTotalTimes(DEMONJAR_MAPID);
            var enterTimes = dungeonModel.GetEnterTimes(DEMONJAR_MAPID);
            var totalTimes = dungeonModel.GetTotalTimes(DATA_MAPID);
            var enterTimes = dungeonModel.GetEnterTimes(DATA_MAPID);
            return totalTimes - enterTimes;
        }
@@ -357,7 +357,7 @@
        {
            if (FuncOpen.Instance.IsFuncOpen(76))
            {
                var count = dungeonModel.GetTotalTimes(DEMONJAR_MAPID) - dungeonModel.GetEnterTimes(DEMONJAR_MAPID);
                var count = dungeonModel.GetTotalTimes(DATA_MAPID) - dungeonModel.GetEnterTimes(DATA_MAPID);
                redpoint.count = count;
            }
            else
@@ -370,7 +370,7 @@
        private void OnMapLineUpdateEvent(int _mapId)
        {
            if (_mapId != DEMONJAR_MAPID)
            if (_mapId != DATA_MAPID)
            {
                return;
            }
@@ -392,7 +392,7 @@
            }
            var mapModel = ModelCenter.Instance.GetModel<MapModel>();
            var lines = mapModel.GetMapLines(DEMONJAR_MAPID);
            var lines = mapModel.GetMapLines(DATA_MAPID);
            for (int i = 0; i < sortedBossIds.Count; i++)
            {
                var bossId = sortedBossIds[i];
@@ -420,7 +420,7 @@
        private void OnDungeonRecordUpdate(int _dataMapId)
        {
            if (DEMONJAR_MAPID == _dataMapId && PlayerDatas.Instance.baseData.LV >= GeneralDefine.demonJarRedPoint)
            if (DATA_MAPID == _dataMapId && PlayerDatas.Instance.baseData.LV >= GeneralDefine.demonJarRedPoint)
            {
                UpdateRedpoint();
            }
@@ -459,7 +459,7 @@
                    {
                        this.findPreciousModel.RequestSubscribeBoss((int)_bossId, true);
                        var model = ModelCenter.Instance.GetModel<DungeonModel>();
                        var grade = model.GetGrade(new Dungeon(DEMONJAR_MAPID, config.LineID));
                        var grade = model.GetGrade(new Dungeon(DATA_MAPID, config.LineID));
                        if ((config.CanEnterTimes == 0 || grade == 0) && this.findPreciousModel.IsBossAlive((int)_bossId))
                        {
                            this.findPreciousModel.AddOneBossRebornNotify(_bossId);