| | |
| | | legendProperty = GetLegendProperty(guid), |
| | | skillInfo = GetSkillInfo(item.itemId), |
| | | suitInfo = GetSuitInfo(guid), |
| | | starInfo = GetStarInfo(item.itemId), |
| | | starInfo = GetStarInfo(guid), |
| | | strengthenProperty = GetStrengthenProperty(guid), |
| | | gemInfo = GetGemInfo(guid), |
| | | |
| | |
| | | levelLimit = item.isAuction ? 0 : item.config.UseLV, |
| | | realmLimit = item.isAuction ? 0 : item.config.RealmLimit, |
| | | star = isEquiped ? star : -1, |
| | | strengthenLevel = Mathf.Min(placeStrengthenLevel, maxStrengthenLevel) |
| | | strengthenLevel = isEquiped ? Mathf.Min(placeStrengthenLevel, maxStrengthenLevel) : 0 |
| | | }; |
| | | |
| | | return baseInfo; |
| | |
| | | var starInfo = new StarInfo(); |
| | | starInfo.equipPosition = new Int2(config.LV, config.EquipPlace); |
| | | starInfo.maxLevel = EquipStarModel.GetMaxStarLevel(config.ItemColor, config.LV); |
| | | starInfo.starLevel = starModel.GetStarLevel(new Int2(config.LV, config.EquipPlace)); |
| | | starInfo.starLevel = 0; |
| | | |
| | | return starInfo; |
| | | } |
| | | |
| | | private static StarInfo GetStarInfo(string guid) |
| | | { |
| | | var item = packModel.GetItemByGuid(guid); |
| | | if (item == null) |
| | | { |
| | | return default(StarInfo); |
| | | } |
| | | |
| | | if (!EquipModel.IsRealmEquip(item.config.EquipPlace)) |
| | | { |
| | | return default(StarInfo); |
| | | } |
| | | |
| | | var starInfo = new StarInfo(); |
| | | var equipPosition = new Int2(item.config.LV, item.config.EquipPlace); |
| | | var equiped = equipModel.GetEquip(equipPosition) == guid; |
| | | starInfo.equipPosition = equipPosition; |
| | | starInfo.maxLevel = EquipStarModel.GetMaxStarLevel(item.config.ItemColor, item.config.LV); |
| | | starInfo.starLevel = equiped ? starModel.GetStarLevel(equipPosition) : 0; |
| | | |
| | | return starInfo; |
| | | } |
| | |
| | | |
| | | var level = item.config.LV; |
| | | var place = item.config.EquipPlace; |
| | | var equiped = equipModel.GetEquip(new Int2(level, place)) == guid; |
| | | if (!equiped) |
| | | { |
| | | return default(StrengthenProperty); |
| | | } |
| | | |
| | | var data = new StrengthenProperty(); |
| | | |
| | | var strengthenLevel = strengthenModel.GetStrengthLevel(level, place); |
| | |
| | | |
| | | var level = item.config.LV; |
| | | var place = item.config.EquipPlace; |
| | | var gemInfo = new GemInfo(); |
| | | |
| | | var gemInfo = new GemInfo(); |
| | | var maxStar = EquipStarModel.GetMaxStarLevel(item.config.ItemColor, item.config.LV); |
| | | gemInfo.activeStates = new Dictionary<int, bool>(); |
| | | for (int i = 0; i < 4; i++) |
| | |
| | | } |
| | | |
| | | var equipPosition = new Int2(item.config.LV, item.config.EquipPlace); |
| | | var trainProperty = new TrainProperty(); |
| | | var equiped = equipModel.GetEquip(equipPosition) == guid; |
| | | if (!equiped) |
| | | { |
| | | return default(TrainProperty); |
| | | } |
| | | |
| | | var trainProperty = new TrainProperty(); |
| | | var star = Mathf.Min(EquipStarModel.GetMaxStarLevel(item.config.ItemColor, item.config.LV), starModel.GetEquipStarLevel(equipPosition)); |
| | | var type = EquipTrainModel.GetTrainType(equipPosition.y); |
| | | var maxConfig = WashLevelMaxConfig.Get(type, star); |