Don't show gil/mgp/allagan tomestones in item search (although they wouldn't be discarded anyway)
This commit is contained in:
parent
be97c709f8
commit
239cb18968
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<Version>3.7</Version>
|
||||
<Version>3.8</Version>
|
||||
<LangVersion>11.0</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace ARDiscard.GameData;
|
||||
|
||||
@ -8,19 +9,22 @@ internal static class InternalConfiguration
|
||||
/// Not all of these *can* be discarded, but we shouldn't attempt it either.
|
||||
/// </summary>
|
||||
public static readonly IReadOnlyList<uint> BlacklistedItems = new List<uint>
|
||||
{
|
||||
2820, // red onion helm
|
||||
{
|
||||
2820, // red onion helm
|
||||
|
||||
16039, // ala mhigan earrings
|
||||
24589, // aetheryte earrings
|
||||
33648, // menphina's earrings
|
||||
16039, // ala mhigan earrings
|
||||
24589, // aetheryte earrings
|
||||
33648, // menphina's earrings
|
||||
|
||||
21197, // UCOB token
|
||||
23175, // UWU token
|
||||
28633, // TEA token
|
||||
36810, // DSR token
|
||||
38951, // TOP token
|
||||
}.AsReadOnly();
|
||||
21197, // UCOB token
|
||||
23175, // UWU token
|
||||
28633, // TEA token
|
||||
36810, // DSR token
|
||||
38951, // TOP token
|
||||
}
|
||||
.Concat(Enumerable.Range(1, 99).Select(x => (uint)x))
|
||||
.ToList()
|
||||
.AsReadOnly();
|
||||
|
||||
/// <summary>
|
||||
/// Items that are unique/untradeable, but should still be possible to discard. This is moreso because
|
||||
|
@ -380,6 +380,7 @@ internal sealed class ConfigWindow : LImGui.LWindow
|
||||
if (_allItems == null)
|
||||
{
|
||||
_allItems = _itemCache.AllItems
|
||||
.Where(x => !InternalConfiguration.BlacklistedItems.Contains(x.ItemId))
|
||||
.Where(x => InternalConfiguration.WhitelistedItems.Contains(x.ItemId) ||
|
||||
x is { IsUnique: false, IsUntradable: false, IsIndisposable: false })
|
||||
.Where(x => x.UiCategory != UiCategories.Currency && x.UiCategory != UiCategories.Crystals &&
|
||||
|
Loading…
Reference in New Issue
Block a user