少年修仙传客户端代码仓库
client_Wu Xijin
2018-09-26 69964c5ccb8b47702c357b1e29b94a4aa0c29a0b
System/FindPrecious/FindPreciousModel.cs
@@ -11,7 +11,10 @@
    {
        public const int PREPOSE_SECONDS = 300;
        public const int FINDPRECIOUS_REDPOINTID = 76000;
        public const int LOOTPRECIOUs_REDPOINTID = 77000;
        Redpoint findPreciousRedpoint = new Redpoint(FINDPRECIOUS_REDPOINTID);
        Redpoint lootPreciousRedpoint = new Redpoint(LOOTPRECIOUs_REDPOINTID);
        int m_ViewKillRecordsBoss = 0;
        public int ViewKillRecordsBoss {
@@ -51,6 +54,7 @@
        WorldBossModel worldBossModel { get { return ModelCenter.Instance.GetModel<WorldBossModel>(); } }
        BossHomeModel bossHomeModel { get { return ModelCenter.Instance.GetModel<BossHomeModel>(); } }
        PersonalBossModel personalBossModel { get { return ModelCenter.Instance.GetModel<PersonalBossModel>(); } }
        DogzDungeonModel dogzDungeonModel { get { return ModelCenter.Instance.GetModel<DogzDungeonModel>(); } }
        public override void Init()
        {
@@ -390,6 +394,17 @@
                findPreciousRedpoint.state = totalCount > 0 ? RedPointState.Quantity : RedPointState.None;
                findPreciousRedpoint.count = totalCount;
            }
            if (_redpointId == DemonJarModel.DEMONJAR_REDPOINTID ||
                _redpointId == DogzDungeonModel.DOGZDUNGEON_REDPOINT)
            {
                var demonJarRedpointCount = demonJarModel.redpoint.count;
                var dogzDungeonRedpointCount = dogzDungeonModel.redpoint.count;
                var totalCount = demonJarRedpointCount + dogzDungeonRedpointCount;
                lootPreciousRedpoint.count = totalCount;
                lootPreciousRedpoint.state = totalCount > 0 ? RedPointState.Quantity : RedPointState.None;
            }
        }
        public FindPreciousType GetBossFindPreciousType(int _bossId)