Skip to content

Commit 549883a

Browse files
committed
Removed foulborn property from non unique items.
1 parent 5616719 commit 549883a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/Sidekick.Apis.Poe.Trade/Parser/Properties/Definitions/FoulbornProperty.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,22 @@ public class FoulbornProperty(IServiceProvider serviceProvider, GameType game) :
1717
public override void ParseAfterModifiers(Item item)
1818
{
1919
if (game == GameType.PathOfExile2) return;
20+
if (item.Properties.Rarity != Rarity.Unique) return;
2021

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

2425
public override Task<PropertyFilter?> GetFilter(Item item, double normalizeValue, FilterType filterType)
2526
{
2627
if (game == GameType.PathOfExile2) return Task.FromResult<PropertyFilter?>(null);
27-
if (FilterProvicer.Foulborn == null) return Task.FromResult<PropertyFilter?>(null);
28-
29-
var filter = new TriStatePropertyFilter(this)
30-
{
31-
Text = FilterProvicer.Foulborn.Text ?? "Foulborn",
32-
Checked = item.Properties.Foulborn,
33-
};
34-
return Task.FromResult<PropertyFilter?>(filter);
28+
if (FilterProvicer.Foulborn == null) return Task.FromResult<PropertyFilter?>(null);
29+
30+
var filter = new TriStatePropertyFilter(this)
31+
{
32+
Text = FilterProvicer.Foulborn.Text ?? "Foulborn",
33+
Checked = item.Properties.Foulborn,
34+
};
35+
return Task.FromResult<PropertyFilter?>(filter);
3536
}
3637

3738
public override void PrepareTradeRequest(Query query, Item item, PropertyFilter filter)

0 commit comments

Comments
 (0)