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
bf08229d02
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0-windows</TargetFramework>
|
<TargetFramework>net7.0-windows</TargetFramework>
|
||||||
<Version>3.7</Version>
|
<Version>3.8</Version>
|
||||||
<LangVersion>11.0</LangVersion>
|
<LangVersion>11.0</LangVersion>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace ARDiscard.GameData;
|
namespace ARDiscard.GameData;
|
||||||
|
|
||||||
@ -20,7 +21,10 @@ internal static class InternalConfiguration
|
|||||||
28633, // TEA token
|
28633, // TEA token
|
||||||
36810, // DSR token
|
36810, // DSR token
|
||||||
38951, // TOP token
|
38951, // TOP token
|
||||||
}.AsReadOnly();
|
}
|
||||||
|
.Concat(Enumerable.Range(1, 99).Select(x => (uint)x))
|
||||||
|
.ToList()
|
||||||
|
.AsReadOnly();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Items that are unique/untradeable, but should still be possible to discard. This is moreso because
|
/// 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)
|
if (_allItems == null)
|
||||||
{
|
{
|
||||||
_allItems = _itemCache.AllItems
|
_allItems = _itemCache.AllItems
|
||||||
|
.Where(x => !InternalConfiguration.BlacklistedItems.Contains(x.ItemId))
|
||||||
.Where(x => InternalConfiguration.WhitelistedItems.Contains(x.ItemId) ||
|
.Where(x => InternalConfiguration.WhitelistedItems.Contains(x.ItemId) ||
|
||||||
x is { IsUnique: false, IsUntradable: false, IsIndisposable: false })
|
x is { IsUnique: false, IsUntradable: false, IsIndisposable: false })
|
||||||
.Where(x => x.UiCategory != UiCategories.Currency && x.UiCategory != UiCategories.Crystals &&
|
.Where(x => x.UiCategory != UiCategories.Currency && x.UiCategory != UiCategories.Crystals &&
|
||||||
|
Loading…
Reference in New Issue
Block a user