Skip to content

Commit

Permalink
Merge pull request #4201 from NerdEgghead/master
Browse files Browse the repository at this point in the history
Small gemming optimization for intermediate ArP stack setups.
  • Loading branch information
NerdEgghead authored Jan 23, 2024
2 parents f086338 + 8d2af8b commit cb8392c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui/core/components/suggest_gems_action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ export class PhysicalDPSGemOptimizer extends GemOptimizer {
updateGemPriority(ungemmedGear: Gear, passiveStats: Stats) {
// First calculate any gear-dependent stat caps.
this.arpTarget = this.calcArpTarget(ungemmedGear);
const arpCap = new Stats().withStat(Stat.StatArmorPenetration, this.arpTarget + this.arpSlop);
const critCap = this.calcCritCap(ungemmedGear);
const expCap = new Stats().withStat(Stat.StatExpertise, this.calcExpTarget() + this.expSlop);
this.passiveHit = passiveStats.getStat(Stat.StatMeleeHit);
Expand All @@ -333,6 +332,13 @@ export class PhysicalDPSGemOptimizer extends GemOptimizer {
this.passiveArp = passiveStats.getStat(Stat.StatArmorPenetration);
this.arpStackDetected = this.detectArpStackConfiguration(ungemmedGear);

/*
* Use tighter constraint on overcapping ArP for hard stack setups, so as
* to reduce the number of missed yellow socket bonuses.
*/
const arpSlop = this.arpStackDetected ? 4 : this.arpSlop;
const arpCap = new Stats().withStat(Stat.StatArmorPenetration, this.arpTarget + arpSlop);

// Update red gem priority
const redGemCaps = new Array<GemCapsData>();

Expand Down Expand Up @@ -441,7 +447,7 @@ export class PhysicalDPSGemOptimizer extends GemOptimizer {
projectedArp += 42;
}

return (this.arpTarget > 1000) && (projectedArp > 648) && (projectedArp + 20 < this.arpTarget + this.arpSlop);
return (this.arpTarget > 1000) && (projectedArp > 648) && (projectedArp + 20 < this.arpTarget + 4);
}

activateMetaGem(gear: Gear): Gear {
Expand Down

0 comments on commit cb8392c

Please sign in to comment.