Skip to content
Open
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
4 changes: 3 additions & 1 deletion ItemData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public record DamageRange(double Min, double Max)
public string ClassName { get; } = string.Empty;
public string BaseName { get; } = string.Empty;
public string Name { get; } = string.Empty;
public string UniqueName { get; } = string.Empty;
public string PublicPrice { get; } = string.Empty;
public string HeistContractJobType { get; } = string.Empty;
public int ItemQuality { get; } = 0;
Expand Down Expand Up @@ -250,7 +251,8 @@ private ItemData(Entity itemEntity, Entity groundItem, GameController gc, LabelO
var affixSlots = GetTotalAffixSlots();
IsIdentified = modsComp.Identified;
ItemLevel = modsComp.ItemLevel;
Name = string.IsNullOrWhiteSpace(modsComp.UniqueName) ? Name : modsComp.UniqueName;
UniqueName = modsComp.UniqueName ?? string.Empty;
Name = string.IsNullOrWhiteSpace(UniqueName) ? Name : UniqueName;
IsSynthesised = modsComp.Synthesised;
IsMirrored = modsComp.IsMirrored;
Enchanted = modsComp.EnchantedMods?.Count > 0;
Expand Down