少年修仙传客户端代码仓库
Client_PangDeRong
2018-09-04 1ceea69ba328a5ef46e38e34f5d9c950538c95cd
3258 支持戮仙武器满足仙宝寻主解锁条件
1个文件已修改
9 ■■■■■ 已修改文件
System/TreasureFindHost/TreasureFindHostModel.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/TreasureFindHost/TreasureFindHostModel.cs
@@ -15,6 +15,7 @@
 
        public List<int> treasureIdlist { get; set; }
        public event Action TreasureFindHostCompleteAct;
        public int[] specEquipIds { get; private set;}
        public override void Init()
        {
@@ -43,6 +44,8 @@
            playerPack.RefreshItemCountAct += RefreshEquipInfo;
            playerSuit.RefreshSuitModelAct += RefreshSuitInfo;
            treasureModel.treasureStateChangeEvent += RefreshTreasureState;
            FuncConfigConfig SamboSpecialUnlock = Config.Instance.Get<FuncConfigConfig>("SamboSpecialUnlock");
            specEquipIds = ConfigParse.GetMultipleStr<int>(SamboSpecialUnlock.Numerical1);
        }
        public void OnBeforePlayerDataInitialize()
@@ -135,12 +138,18 @@
            SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptEquip);
            if (singlePack == null) return false;
            foreach (var condi in treasureInfo.needConditionsDict.Values)
            {
                progress = 0;
                ItemModel itemModel = playerPack.GetItemModelByIndex(PackType.rptEquip,condi[3]);
                if(itemModel != null)
                {
                    if(specEquipIds != null && specEquipIds.Contains(condi[3]))
                    {
                        progress += 1;
                        return true;
                    }
                    if(itemModel.chinItemModel.LV >= condi[0]
                        && itemModel.chinItemModel.ItemColor >= condi[1]
                        && itemModel.chinItemModel.StarLevel >= condi[2])