Skip to content

Commit 04e949f

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Concoction skill Crit Chance and base damage (#1019)
The mods on the skills were incorrect and they were not using the crit chance stat from the skill Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 13e9ee4 commit 04e949f

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

src/Data/SkillStatMap.lua

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ return {
8181
["secondary_maximum_base_chaos_damage"] = {
8282
skill("ChaosMax", nil),
8383
},
84-
["main_hand_weapon_minimum_lightning_damage"] = {
85-
skill("LightningMin", nil)
86-
},
87-
["main_hand_weapon_maximum_lightning_damage"] = {
88-
skill("LightningMax", nil)
89-
},
9084
["spell_minimum_base_lightning_damage_per_removable_power_charge"] = {
9185
skill("LightningMin", nil, { type = "Multiplier", var = "RemovablePowerCharge" }),
9286
},
@@ -108,12 +102,6 @@ return {
108102
["spell_minimum_base_cold_damage_+_per_10_intelligence"] = {
109103
skill("ColdMin", nil, { type = "PerStat", stat = "Int", div = 10 }),
110104
},
111-
["main_hand_weapon_minimum_cold_damage"] = {
112-
skill("ColdMin", "BASE", nil),
113-
},
114-
["main_hand_weapon_maximum_cold_damage"] = {
115-
skill("ColdMax", "BASE", nil),
116-
},
117105
["spell_maximum_base_cold_damage_+_per_10_intelligence"] = {
118106
skill("ColdMax", nil, { type = "PerStat", stat = "Int", div = 10 }),
119107
},
@@ -1765,19 +1753,25 @@ return {
17651753
["main_hand_weapon_minimum_physical_damage"] = {
17661754
mod("PhysicalMin", "BASE", nil, 0, KeywordFlag.Attack),
17671755
},
1756+
["main_hand_weapon_maximum_physical_damage"] = {
1757+
mod("PhysicalMax", "BASE", nil, 0, KeywordFlag.Attack),
1758+
},
17681759
["main_hand_base_physical_damage_from_%_dex"] = {
17691760
mod("PhysicalMin", "BASE", nil, 0, 0, { type = "PercentStat", stat = "Dex", percent = 1 }),
17701761
mod("PhysicalMax", "BASE", nil, 0, 0, { type = "PercentStat", stat = "Dex", percent = 1 }),
17711762
},
1772-
["main_hand_weapon_maximum_physical_damage"] = {
1773-
mod("PhysicalMax", "BASE", nil, 0, KeywordFlag.Attack),
1774-
},
17751763
["attack_minimum_added_lightning_damage"] = {
17761764
mod("LightningMin", "BASE", nil, 0, KeywordFlag.Attack),
17771765
},
17781766
["attack_maximum_added_lightning_damage"] = {
17791767
mod("LightningMax", "BASE", nil, 0, KeywordFlag.Attack),
17801768
},
1769+
["main_hand_weapon_minimum_lightning_damage"] = {
1770+
mod("LightningMin", "BASE", nil, 0, KeywordFlag.Attack),
1771+
},
1772+
["main_hand_weapon_maximum_lightning_damage"] = {
1773+
mod("LightningMax", "BASE", nil, 0, KeywordFlag.Attack),
1774+
},
17811775
["attack_skills_have_added_lightning_damage_equal_to_%_of_maximum_mana"] = {
17821776
mod("LightningMin", "BASE", nil, ModFlag.Attack, 0, { type = "PercentStat", stat = "Mana", percent = 1 }),
17831777
mod("LightningMax", "BASE", nil, ModFlag.Attack, 0, { type = "PercentStat", stat = "Mana", percent = 1 }),
@@ -1788,6 +1782,12 @@ return {
17881782
["attack_maximum_added_cold_damage"] = {
17891783
mod("ColdMax", "BASE", nil, 0, KeywordFlag.Attack),
17901784
},
1785+
["main_hand_weapon_minimum_cold_damage"] = {
1786+
mod("ColdMin", "BASE", nil, 0, KeywordFlag.Attack),
1787+
},
1788+
["main_hand_weapon_maximum_cold_damage"] = {
1789+
mod("ColdMax", "BASE", nil, 0, KeywordFlag.Attack),
1790+
},
17911791
["attack_minimum_added_fire_damage"] = {
17921792
mod("FireMin", "BASE", nil, 0, KeywordFlag.Attack),
17931793
},

src/Modules/CalcOffence.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,6 +2070,9 @@ function calcs.offence(env, actor, activeSkill)
20702070
-- Unarmed override for Concoction skills
20712071
if skillFlags.unarmed then
20722072
source = copyTable(data.unarmedWeaponData[env.classId])
2073+
if skillData.CritChance then
2074+
source.CritChance = skillData.CritChance
2075+
end
20732076
end
20742077
if critOverride and source.type and source.type ~= "None" then
20752078
source.CritChance = critOverride
@@ -2091,6 +2094,9 @@ function calcs.offence(env, actor, activeSkill)
20912094
-- Unarmed override for Concoction skills
20922095
if skillFlags.unarmed then
20932096
source = copyTable(data.unarmedWeaponData[env.classId])
2097+
if skillData.CritChance then
2098+
source.CritChance = skillData.CritChance
2099+
end
20942100
end
20952101
if critOverride and source.type and source.type ~= "None" then
20962102
source.CritChance = critOverride

0 commit comments

Comments
 (0)