Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Ninja Price/Main/CustomItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public CustomItem(string uniqueName, ItemTypes type)
ClassName = "";
BaseName = "";
UniqueNameCandidates = [];
FoulbornMods = [];
}

public CustomItem(Entity itemEntity, Element element)
Expand Down
3 changes: 2 additions & 1 deletion Ninja Price/Methods/Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,8 @@ bool VariantMatches(string? variant)
GetValue(sacItem);
var gainItem = new CustomItem(ultimatumTrial.RewardItemWord.Text, gainUniqueType ?? ItemTypes.None) { MapInfo = { MapTier = 16 } };
GetValue(gainItem);
item.PriceData.MinChaosValue = gainItem.PriceData.MinChaosValue - sacItem.PriceData.MinChaosValue;
// the reward name can match several lines (variants, links), and MaxChaosValue is what this plugin uses elsewhere to flag value, so take the dearest match
item.PriceData.MinChaosValue = gainItem.PriceData.MaxChaosValue - sacItem.PriceData.MinChaosValue;
item.PriceData.DetailsId = $"ultimatum-inscribed-unique-{sacItem.PriceData.DetailsId}-{gainItem.PriceData.DetailsId}";
break;
}
Expand Down