Skip to content

Commit 2e27d91

Browse files
author
LocalIdentity
committed
Fix Payload support "Grendade active a second time" not working
The mod had a stat map but it was not hooked up to any DPS calcs Changed the way the tree node works so that both stats are additive and cap out at 100% chance
1 parent 5046395 commit 2e27d91

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/Data/SkillStatMap.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,7 @@ return {
24462446
},
24472447
-- Grenade
24482448
["grenade_skill_%_chance_to_explode_twice"] = {
2449-
mod("GrenadeExplodeTwice", "INC", nil),
2449+
mod("GrenadeActivateTwice", "BASE", nil),
24502450
},
24512451
["support_grenade_damage_+%_final"] = {
24522452
mod("Damage", "MORE", nil),

src/Modules/CalcOffence.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,11 @@ function calcs.offence(env, actor, activeSkill)
10231023
skillData.boltCount = ammoStats.boltCount
10241024
skillData.reloadTime = ammoStats.reloadTime
10251025
end
1026+
1027+
if activeSkill.skillTypes[SkillType.Grenade] then
1028+
local detonateTwice = m_min(skillModList:Sum("BASE", skillCfg, "GrenadeActivateTwice"), 100)
1029+
modDB:NewMod("DPS", "MORE", detonateTwice, "Grenade Activate Twice")
1030+
end
10261031

10271032
if skillModList:Flag(nil, "HasSeals") and activeSkill.skillTypes[SkillType.Unleashable] and not skillModList:Flag(nil, "NoRepeatBonuses") then
10281033
-- Applies DPS multiplier based on seals count

src/Modules/ModParser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4341,7 +4341,7 @@ local specialModList = {
43414341
["loads? an additional bolt"] = { mod("CrossbowBoltCount", "BASE", 1, nil, ModFlag.Crossbow, { type = "SkillType", skillType = SkillType.CrossbowSkill }) },
43424342
["loads? (%d+) additional bolts?"] = function(num) return { mod("CrossbowBoltCount", "BASE", num, nil, ModFlag.Crossbow, { type = "SkillType", skillType = SkillType.CrossbowSkill }) } end,
43434343
["grenade skills fire an additional projectile"] = { mod("ProjectileCount", "BASE", 1, nil, ModFlag.Projectile, { type = "SkillType", skillType = SkillType.Grenade })},
4344-
["grenades have (%d+)%% chance to activate a second time"] = function(num) return { mod("DPS", "MORE", num, nil, ModFlag.Projectile, { type = "SkillType", skillType = SkillType.Grenade })} end,
4344+
["grenades have (%d+)%% chance to activate a second time"] = function(num) return { mod("GrenadeActivateTwice", "BASE", num, { type = "SkillType", skillType = SkillType.Grenade })} end,
43454345
["skills fire an additional projectile"] = { mod("ProjectileCount", "BASE", 1) },
43464346
["spells [hf][ai][vr]e an additional projectile"] = { mod("ProjectileCount", "BASE", 1, nil, ModFlag.Spell) },
43474347
["attacks fire an additional projectile"] = { mod("ProjectileCount", "BASE", 1, nil, ModFlag.Attack) },

0 commit comments

Comments
 (0)