Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,22 @@ public class FoulbornProperty(IServiceProvider serviceProvider, GameType game) :
public override void ParseAfterModifiers(Item item)
{
if (game == GameType.PathOfExile2) return;
if (item.Properties.Rarity != Rarity.Unique) return;

item.Properties.Foulborn = item.Modifiers.Any(x => x.ApiInformation.Any(y => y.Category == ModifierCategory.Mutated));
}

public override Task<PropertyFilter?> GetFilter(Item item, double normalizeValue, FilterType filterType)
{
if (game == GameType.PathOfExile2) return Task.FromResult<PropertyFilter?>(null);
if (FilterProvicer.Foulborn == null) return Task.FromResult<PropertyFilter?>(null);

var filter = new TriStatePropertyFilter(this)
{
Text = FilterProvicer.Foulborn.Text ?? "Foulborn",
Checked = item.Properties.Foulborn,
};
return Task.FromResult<PropertyFilter?>(filter);
if (FilterProvicer.Foulborn == null) return Task.FromResult<PropertyFilter?>(null);

var filter = new TriStatePropertyFilter(this)
{
Text = FilterProvicer.Foulborn.Text ?? "Foulborn",
Checked = item.Properties.Foulborn,
};
return Task.FromResult<PropertyFilter?>(filter);
}

public override void PrepareTradeRequest(Query query, Item item, PropertyFilter filter)
Expand Down
Loading