| | |
| | |
|
| | | public List<int> treasureIdlist { get; set; }
|
| | | public event Action TreasureFindHostCompleteAct;
|
| | | public int[] specEquipIds { get; private set;}
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | |
| | | 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()
|
| | |
| | | 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])
|