You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add handling for forced outcome
* Consider lucky crits
* Rename to forced outcome to avoid ambiguation with support gem, fix calculations, move calculations
* Fix mod cache, spelling, and add tests
* Change to 100% effective crit
* Clean up crit logic, fix test
* Restore accuracy consideration, fix lucky and bifurcate interaction
* Use localized math functions and fix formatting
* Add test + fix interaction with bifurcated crits
---------
Co-authored-by: LocalIdentity <localidentity2@gmail.com>
Copy file name to clipboardExpand all lines: src/Data/ModCache.lua
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5425,7 +5425,7 @@ c["Increases and Reductions to Minion Attack Speed also affect you"]={{[1]={flag
5425
5425
c["Increases and Reductions to Minion Damage also affect you"]={{[1]={flags=0,keywordFlags=0,name="MinionDamageAppliesToPlayer",type="FLAG",value=true},[2]={flags=0,keywordFlags=0,name="ImprovedMinionDamageAppliesToPlayer",type="MAX",value=100}},nil}
5426
5426
c["Increases and Reductions to Projectile Speed also apply to Damage with Bows"]={{[1]={flags=0,keywordFlags=0,name="ProjectileSpeedAppliesToBowDamage",type="FLAG",value=true}},nil}
5427
5427
c["Increases and Reductions to Spell damage also apply to Attacks"]={{[1]={flags=0,keywordFlags=0,name="SpellDamageAppliesToAttacks",type="FLAG",value=true},[2]={flags=0,keywordFlags=0,name="ImprovedSpellDamageAppliesToAttacks",type="MAX",value=100}},nil}
Copy file name to clipboardExpand all lines: src/Modules/CalcOffence.lua
+38-3Lines changed: 38 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3484,6 +3484,7 @@ function calcs.offence(env, actor, activeSkill)
3484
3484
end
3485
3485
3486
3486
-- Calculate crit chance, crit multiplier, and their combined effect
3487
+
localforcedOutcomeApplies=false
3487
3488
ifskillModList:Flag(cfg, "NeverCrit") then
3488
3489
output.PreEffectiveCritChance=0
3489
3490
output.CritChance=0
@@ -3560,6 +3561,8 @@ function calcs.offence(env, actor, activeSkill)
3560
3561
output.PreEffectiveCritChance=output.CritChance
3561
3562
localpreHitCheckCritChance=output.CritChance
3562
3563
ifenv.mode_effectivethen
3564
+
-- Hits that make an accuracy check make a second accuracy check if they roll a crit. If that fails, the crit is nullified and it just stays a normal hit
0 commit comments