| | |
| | | { |
| | | public static readonly List<int> realmEquipTypes = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; |
| | | |
| | | public int showedUnLockLevel |
| | | { |
| | | public int showedUnLockLevel { |
| | | get { return LocalSave.GetInt(StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "EquipSetUnLockHasShowed"), 1); } |
| | | set { LocalSave.SetInt(StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "EquipSetUnLockHasShowed"), value); } |
| | | } |
| | |
| | | return set.CompareToCurrent(equipGuid); |
| | | } |
| | | |
| | | public bool ExistBetterEquip(int level ,List<int> places) |
| | | { |
| | | if (!equipSets.ContainsKey(level)) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | var items = packModel.GetItems(PackType.Item, new SinglePack.FilterParams() |
| | | { |
| | | levels = new List<int>() { level }, |
| | | equipTypes = places, |
| | | jobs = new List<int>() { PlayerDatas.Instance.baseData.Job, 0 }, |
| | | }); |
| | | |
| | | var hasBetterEquip = false; |
| | | var set = equipSets[level]; |
| | | foreach (var equip in items) |
| | | { |
| | | if (CompareToCurrent(equip.guid) > 0) |
| | | { |
| | | hasBetterEquip = true; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | return hasBetterEquip; |
| | | } |
| | | |
| | | public bool ExistBetterEquip(int level) |
| | | { |
| | | return ExistBetterEquip(level,realmEquipTypes); |
| | | } |
| | | |
| | | public EquipSuitPropertyEntry GetEquipSuitEntry(int level, int star, EquipSuitType type) |
| | | { |
| | | var configs = EquipSuitConfig.GetConfigs(PlayerDatas.Instance.baseData.Job, level, type); |