| | |
| | | public int strengthenLevel;
|
| | | public int starLevel;
|
| | | public List<Int2> trainProperties;
|
| | | public Dictionary<int, bool> activeStates; |
| | | public Dictionary<int, bool> gemHoleActiveStates; |
| | | public Dictionary<int, int> gems;
|
| | | public List<int> skills;
|
| | | } |
| | |
| | |
|
| | | var legendProperty = new LegendProperty()
|
| | | {
|
| | | properties=info.legendProperties,
|
| | | properties = info.legendProperties,
|
| | | };
|
| | |
|
| | | var skillInfo = GetSkillInfo(info.itemId);
|
| | |
|
| | | var suitInfo = new SuitInfo()
|
| | | |
| | | var job = config.JobLimit; |
| | | var twoConfigs = EquipSuitConfig.GetConfigs(job, config.LV, EquipSuitType.TwoSuit); |
| | | var name = twoConfigs[0].name; |
| | | var level = config.LV; |
| | | var maxSuitLevel = EquipStarModel.GetMaxStarLevel(level); |
| | | |
| | | var twoSuitProperties = new Dictionary<int, EquipSuitPropertyEntry>(); |
| | | var fiveSuitProperties = new Dictionary<int, EquipSuitPropertyEntry>(); |
| | | var eightSuits = new Dictionary<int, bool>(); |
| | | var eightSuitLevel = info.suitLevels[EquipSuitType.EightSuit]; |
| | | |
| | | for (var i = 0; i <= 9; i++, i++, i++)
|
| | | {
|
| | | var configs = EquipSuitConfig.GetConfigs(job, level, EquipSuitType.TwoSuit);
|
| | | var actived = info.suitLevels[EquipSuitType.TwoSuit] >= i;
|
| | | var properties = new List<Int2>();
|
| | | foreach (var item in configs)
|
| | | {
|
| | | if (item.star == i)
|
| | | {
|
| | | properties.AddRange(item.attr);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | twoSuitProperties[i] = new EquipSuitPropertyEntry()
|
| | | {
|
| | | type = EquipSuitType.TwoSuit,
|
| | | actived = actived,
|
| | | properties = properties,
|
| | | };
|
| | |
|
| | | configs = EquipSuitConfig.GetConfigs(job, level, EquipSuitType.FiveSuit);
|
| | | actived = info.suitLevels[EquipSuitType.FiveSuit] >= i;
|
| | | properties = new List<Int2>();
|
| | | foreach (var item in configs)
|
| | | {
|
| | | if (item.star == i)
|
| | | {
|
| | | properties.AddRange(item.attr);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | fiveSuitProperties[i] = new EquipSuitPropertyEntry()
|
| | | {
|
| | | type = EquipSuitType.TwoSuit,
|
| | | actived = actived,
|
| | | properties = properties,
|
| | | };
|
| | |
|
| | | eightSuits[i] = eightSuitLevel >= i;
|
| | | } |
| | | |
| | | var suitInfo = new SuitInfo() |
| | | { |
| | | name = name, |
| | | level = level, |
| | | job = job, |
| | | maxSuitLevel = maxSuitLevel, |
| | | places = info.suitPlaces, |
| | | twoSuitProperties = twoSuitProperties, |
| | | fiveSuitProperties = fiveSuitProperties, |
| | | eightSuits = eightSuits |
| | | };
|
| | |
|
| | | var starInfo = new StarInfo()
|
| | | {
|
| | | equipPosition = new Int2(config.LV, config.EquipPlace),
|
| | | starLevel = info.starLevel,
|
| | | maxLevel = EquipStarModel.GetMaxStarLevel(config.ItemColor, config.LV),
|
| | | };
|
| | |
|
| | | var type = strengthenModel.GetEquipStrengthType(config.EquipPlace); |
| | | var strengthenConfig = ItemPlusConfig.GetTypeAndLevel(type, info.strengthenLevel); |
| | | var strengthenProperties = new List<Int2>(); |
| | | for (int i = 0; i < strengthenConfig.attType.Length; i++) |
| | | {
|
| | | strengthenProperties.Add(new Int2(strengthenConfig.attType[i], strengthenConfig.attValue[i])); |
| | | }
|
| | | var strengthenProperty = new StrengthenProperty()
|
| | | {
|
| | | strengthenLevel = info.strengthenLevel,
|
| | | properties = strengthenProperties
|
| | | };
|
| | |
|
| | | var gemInfo = new GemInfo()
|
| | | {
|
| | | activeStates = info.gemHoleActiveStates,
|
| | | gems = info.gems,
|
| | | };
|
| | |
|
| | | var trainProperty = new TrainProperty()
|
| | | {
|
| | | properties = info.trainProperties,
|
| | | };
|
| | |
|
| | | return new TipData() |
| | |
| | | baseProperty = baseProperty, |
| | | legendProperty = legendProperty, |
| | | skillInfo = skillInfo, |
| | | suitInfo = GetSuitInfo(guid), |
| | | starInfo = GetStarInfo(guid), |
| | | strengthenProperty = GetStrengthenProperty(guid), |
| | | gemInfo = GetGemInfo(guid), |
| | | trainProperty = GetTrainProperty(guid), |
| | | suitInfo = suitInfo, |
| | | starInfo = starInfo, |
| | | strengthenProperty = strengthenProperty, |
| | | gemInfo = gemInfo, |
| | | trainProperty = trainProperty, |
| | | };
|
| | | } |
| | | |