diff --git a/Lib9c/Action/CombinationEquipment5.cs b/Lib9c/Action/CombinationEquipment5.cs index ba19c84b6a..48488e37ab 100644 --- a/Lib9c/Action/CombinationEquipment5.cs +++ b/Lib9c/Action/CombinationEquipment5.cs @@ -29,7 +29,13 @@ public static Skill GetSkill(EquipmentItemOptionSheet.Row row, SkillSheet skillS var skillRow = skillSheet.OrderedList.First(r => r.Id == row.SkillId); var dmg = random.Next(row.SkillDamageMin, row.SkillDamageMax + 1); var chance = random.Next(row.SkillChanceMin, row.SkillChanceMax + 1); - var skill = SkillFactory.GetV1(skillRow, dmg, chance); + + var hasStatDamageRatio = row.StatDamageRatioMin != default && row.StatDamageRatioMax != default; + var statDamageRatio = hasStatDamageRatio ? + random.Next(row.StatDamageRatioMin, row.StatDamageRatioMax + 1) : default; + var refStatType = hasStatDamageRatio ? row.ReferencedStatType : StatType.NONE; + + var skill = SkillFactory.Get(skillRow, dmg, chance, statDamageRatio, refStatType); return skill; } catch (InvalidOperationException) diff --git a/Lib9c/TableCSV/Item/EquipmentItemOptionSheet.csv b/Lib9c/TableCSV/Item/EquipmentItemOptionSheet.csv index 2d99f2f1e2..c3cfb65888 100644 --- a/Lib9c/TableCSV/Item/EquipmentItemOptionSheet.csv +++ b/Lib9c/TableCSV/Item/EquipmentItemOptionSheet.csv @@ -2070,4 +2070,4 @@ id,stat_type,stat_min,stat_max,skill_id,skill_damage_min,skill_damage_max,skill_ 1055400122,HIT,1,1,,,,,,,, 1055400123,DEF,1,1,,,,,,,, 1055400124,,,,700010,50,80,28,28,,, -1055400125,,,,700011,,,28,28,2300,2300, \ No newline at end of file +1055400125,,,,700011,0,0,28,28,2300,2300,HP \ No newline at end of file