Skip to content

Commit

Permalink
Fixed some implicit affixes when importing from maxroll.
Browse files Browse the repository at this point in the history
  • Loading branch information
josdemmers committed Aug 31, 2024
1 parent 26cd8cb commit 82c89c1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions D4Companion.Services/BuildsManagerMaxroll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,19 @@ public void CreatePresetFromMaxrollBuild(MaxrollBuild maxrollBuild, string profi
foreach (var implicitAffix in maxrollBuild.Data.Items[item.Value].Implicits)
{
int affixSno = implicitAffix.Nid;

// Fix Maxroll bugged affixes
if (item.Key == 6)
{
// 1HTotem --- 1234188, 1234170 --- INHERENT_CooldownReductionCDR --> INHERENT_Luck
affixSno = 1234170;
}
else if (item.Key == 14)
{
// Pants --- No longer has any implicit
break;
}

AffixInfo? affixInfoFull = _affixManager.GetAffixInfoEnUSFull(affixSno);

if (affixInfoFull == null)
Expand Down

0 comments on commit 82c89c1

Please sign in to comment.