Skip to content

Commit 86ffccd

Browse files
authored
attempt 2 at scaling Concoction as Unarmed (#659)
1 parent be9e770 commit 86ffccd

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

src/Data/SkillStatMap.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2379,10 +2379,6 @@ return {
23792379
["supported_minion_skill_gem_level_+"] = {
23802380
mod("SupportedGemProperty", "LIST", { keyword = "grants_active_skill", key = "level", value = nil }, 0, 0, { type = "SkillType", skillType = SkillType.Minion }),
23812381
},
2382-
["base_apply_unarmed_stats_to_offhand"] = {
2383-
flag("UnarmedOverride")
2384-
},
2385-
23862382
-- Display only
23872383
["quality_display_base_additional_arrows_is_gem"] = {
23882384
-- Display only

src/Data/Skills/other.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ skills["BleedingConcoctionPlayer"] = {
193193
baseFlags = {
194194
attack = true,
195195
projectile = true,
196+
unarmed = true,
196197
},
197198
constantStats = {
198199
{ "additional_base_critical_strike_chance", 500 },
@@ -1449,6 +1450,7 @@ skills["ExplosiveConcoctionPlayer"] = {
14491450
attack = true,
14501451
projectile = true,
14511452
duration = true,
1453+
unarmed = true,
14521454
},
14531455
constantStats = {
14541456
{ "additional_base_critical_strike_chance", 500 },
@@ -1586,6 +1588,7 @@ skills["FulminatingConcoctionPlayer"] = {
15861588
attack = true,
15871589
projectile = true,
15881590
duration = true,
1591+
unarmed = true,
15891592
},
15901593
constantStats = {
15911594
{ "additional_base_critical_strike_chance", 800 },
@@ -2416,6 +2419,7 @@ skills["PoisonousConcoctionPlayer"] = {
24162419
baseFlags = {
24172420
attack = true,
24182421
projectile = true,
2422+
unarmed = true,
24192423
},
24202424
constantStats = {
24212425
{ "additional_base_critical_strike_chance", 500 },
@@ -2822,6 +2826,7 @@ skills["ShatteringConcoctionPlayer"] = {
28222826
attack = true,
28232827
projectile = true,
28242828
duration = true,
2829+
unarmed = true,
28252830
},
28262831
constantStats = {
28272832
{ "additional_base_critical_strike_chance", 1100 },

src/Export/Skills/other.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ local skills, mod, flag, skill = ...
1818
#skill BleedingConcoctionPlayer
1919
#startSets
2020
#set BleedingConcoctionPlayer
21-
#flags attack projectile
21+
#flags attack projectile unarmed
2222
statMap = {
2323
["flask_throw_bleed_effect_+%_final"] = {
2424
mod("AilmentMagnitude", "MORE", nil, 0, KeywordFlag.Bleed),
@@ -97,7 +97,7 @@ statMap = {
9797
#skill ExplosiveConcoctionPlayer
9898
#startSets
9999
#set ExplosiveConcoctionPlayer
100-
#flags attack projectile duration
100+
#flags attack projectile duration unarmed
101101
statMap = {
102102
["flask_throw_fire_exposure_ms"] = {
103103
mod("FireExposureChance", "BASE", nil),
@@ -111,7 +111,7 @@ statMap = {
111111
#skill FulminatingConcoctionPlayer
112112
#startSets
113113
#set FulminatingConcoctionPlayer
114-
#flags attack projectile duration
114+
#flags attack projectile duration unarmed
115115
statMap = {
116116
["flask_throw_lightning_exposure_ms"] = {
117117
mod("LightningExposureChance", "BASE", nil),
@@ -173,7 +173,7 @@ statMap = {
173173
#skill PoisonousConcoctionPlayer
174174
#startSets
175175
#set PoisonousConcoctionPlayer
176-
#flags attack projectile
176+
#flags attack projectile unarmed
177177
statMap = {
178178
["flask_throw_poison_effect_+%_final"] = {
179179
mod("AilmentMagnitude", "MORE", nil, 0, KeywordFlag.Poison),
@@ -210,7 +210,7 @@ statMap = {
210210
#skill ShatteringConcoctionPlayer
211211
#startSets
212212
#set ShatteringConcoctionPlayer
213-
#flags attack projectile duration
213+
#flags attack projectile duration unarmed
214214
statMap = {
215215
["flask_throw_cold_exposure_ms"] = {
216216
mod("ColdExposureChance", "BASE", nil),

src/Modules/CalcActiveSkill.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ function calcs.buildActiveSkillModList(env, activeSkill)
347347
if weapon1Flags then
348348
if skillFlags.attack or skillFlags.dotFromAttack then
349349
-- Concoction skills ignore weapon flags
350-
activeSkill.weapon1Flags = (skillModList:Flag(nil, "UnarmedOverride") and ModFlag.Unarmed) or weapon1Flags
350+
activeSkill.weapon1Flags = (skillFlags.unarmed and ModFlag.Unarmed) or weapon1Flags
351351
skillFlags.weapon1Attack = true
352352
if weapon1Info.melee and skillFlags.melee then
353353
skillFlags.projectile = nil
@@ -368,7 +368,7 @@ function calcs.buildActiveSkillModList(env, activeSkill)
368368
skillFlags.disable = true
369369
activeSkill.disableReason = activeSkill.disableReason or "Weapon Types Need to be Different"
370370
elseif skillFlags.attack or skillFlags.dotFromAttack then
371-
activeSkill.weapon2Flags = (skillModList:Flag(nil, "UnarmedOverride") and ModFlag.Unarmed) or weapon2Flags
371+
activeSkill.weapon2Flags = (skillFlags.unarmed and ModFlag.Unarmed) or weapon2Flags
372372
skillFlags.weapon2Attack = true
373373
end
374374
elseif (skillTypes[SkillType.DualWieldOnly] or weapon2Info) and not activeSkill.summonSkill then

src/Modules/CalcOffence.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ function calcs.offence(env, actor, activeSkill)
19571957
activeSkill.weapon1Cfg.skillStats = output.MainHand
19581958
local source = copyTable(actor.weaponData1)
19591959
-- Unarmed override for Concoction skills
1960-
if skillModList:Flag(nil, "UnarmedOverride") then
1960+
if skillFlags.unarmed then
19611961
source = copyTable(data.unarmedWeaponData[env.classId])
19621962
end
19631963
if critOverride and source.type and source.type ~= "None" then
@@ -1977,6 +1977,10 @@ function calcs.offence(env, actor, activeSkill)
19771977
end
19781978
activeSkill.weapon2Cfg.skillStats = output.OffHand
19791979
local source = copyTable(actor.weaponData2)
1980+
-- Unarmed override for Concoction skills
1981+
if skillFlags.unarmed then
1982+
source = copyTable(data.unarmedWeaponData[env.classId])
1983+
end
19801984
if critOverride and source.type and source.type ~= "None" then
19811985
source.CritChance = critOverride
19821986
end

0 commit comments

Comments
 (0)