| | |
| | | {5,new LogicString () }, |
| | | }; |
| | | |
| | | public readonly LogicList<Star> stars = new LogicList<Star>(); |
| | | |
| | | public readonly LogicInt specialMaterial = new LogicInt(); |
| | | public readonly LogicInt starResultEffect = new LogicInt(); |
| | | |
| | |
| | | |
| | | public void UpdateStarLevels(HA3B1_tagMCEquipPartStarInfo info) |
| | | { |
| | | var selectedEquipOldStar = GetEquipStarLevel(new Int2(selectedLevel.value, selectedPlace.value)); |
| | | for (var i = 0; i < info.InfoList.Length; i++) |
| | | { |
| | | var equipPosition = EquipSet.ServerPlaceToClientPlace(info.InfoList[i].EquipPackIndex); |
| | |
| | | } |
| | | } |
| | | |
| | | equipStarLevel.value = GetEquipStarLevel(new Int2(selectedLevel.value, selectedPlace.value)); |
| | | var starLevel = GetEquipStarLevel(new Int2(selectedLevel.value, selectedPlace.value)); |
| | | equipStarLevel.value = starLevel; |
| | | selectedPlace.dirty = true; |
| | | |
| | | var maxStarLevel = GetMaxStarLevel(selectedLevel.value); |
| | | UpdateSelelctedEquipStars(selectedEquipOldStar, starLevel, maxStarLevel); |
| | | |
| | | foreach (var candidate in candidatePlaces.Values) |
| | | { |
| | |
| | | { |
| | | item.value = string.Empty; |
| | | } |
| | | |
| | | stars.Clear(); |
| | | } |
| | | |
| | | public void SelectLevel(int level) |
| | |
| | | candidate.selected.value = candidate.equipPosition == equipPosition; |
| | | } |
| | | |
| | | equipStarLevel.value = GetEquipStarLevel(equipPosition); |
| | | equipMaxStarLevel.value = GetMaxStarLevel(equipPosition.x); |
| | | var starLevel = GetEquipStarLevel(equipPosition); |
| | | var maxStarLevel = GetMaxStarLevel(equipPosition.x); |
| | | equipStarLevel.value = starLevel; |
| | | equipMaxStarLevel.value = maxStarLevel; |
| | | |
| | | UpdateSelelctedEquipStars(starLevel, starLevel, maxStarLevel); |
| | | AutoAddMaterials(equipPosition); |
| | | CalculateStarUpgradeProbability(equipPosition); |
| | | } |
| | |
| | | return materials.ContainsKey(index) ? materials[index] : null; |
| | | } |
| | | |
| | | private void UpdateSelelctedEquipStars(int oldStarLevel, int newStarLevel, int maxStarLevel) |
| | | { |
| | | stars.Clear(); |
| | | for (var i = 1; i <= maxStarLevel; i++) |
| | | { |
| | | stars.Add(new Star() |
| | | { |
| | | actived = i <= newStarLevel, |
| | | newGet = i <= newStarLevel && i > oldStarLevel, |
| | | }); |
| | | } |
| | | } |
| | | |
| | | private void ParseConfig() |
| | | { |
| | | var configs = EquipStarConfig.GetValues(); |
| | |
| | | } |
| | | } |
| | | |
| | | public struct Star |
| | | { |
| | | public bool actived; |
| | | public bool newGet; |
| | | } |
| | | |
| | | } |
| | | } |