Skip to content

Commit

Permalink
Tinctures are now modifiable items
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe committed Aug 1, 2024
1 parent edb1e58 commit f8d9078
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion renderer/src/web/price-check/CheckedItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export default defineComponent({
(item.category === ItemCategory.Map) ||
(item.category === ItemCategory.HeistBlueprint) ||
(item.category === ItemCategory.SanctumRelic) ||
(item.category === ItemCategory.Tincture) ||
(item.category === ItemCategory.Charm) ||
(!CATEGORY_TO_TRADE_ID.has(item.category!)) ||
(item.isUnidentified) ||
Expand Down
8 changes: 3 additions & 5 deletions renderer/src/web/price-check/filters/create-item-filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ export function createFilters (
disabled = true
} else if (
item.category === ItemCategory.SanctumRelic ||
item.category === ItemCategory.Charm ||
item.category === ItemCategory.Tincture
item.category === ItemCategory.Charm
) {
disabled = false
}
Expand All @@ -190,7 +189,7 @@ export function createFilters (
}

if (item.quality && item.quality >= 20) {
if (item.category === ItemCategory.Flask) {
if (item.category === ItemCategory.Flask || item.category === ItemCategory.Tincture) {
filters.quality = {
value: item.quality,
disabled: (item.quality <= 20)
Expand Down Expand Up @@ -271,7 +270,6 @@ export function createFilters (
item.category !== ItemCategory.HeistContract &&
item.category !== ItemCategory.MemoryLine &&
item.category !== ItemCategory.SanctumRelic &&
item.category !== ItemCategory.Tincture &&
item.category !== ItemCategory.Charm &&
item.info.refName !== 'Expedition Logbook'
) {
Expand All @@ -285,7 +283,7 @@ export function createFilters (
// TODO limit level by item type
filters.itemLevel = {
value: Math.min(item.itemLevel, 86),
disabled: (!opts.exact || item.category === ItemCategory.Flask)
disabled: (!opts.exact || item.category === ItemCategory.Flask || item.category === ItemCategory.Tincture)
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions renderer/src/web/price-check/filters/create-stat-filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export function createExactStatFilters (

if (
!item.influences.length &&
!item.isFractured
!item.isFractured &&
item.category !== ItemCategory.Tincture
) {
keepByType.push(ModifierType.Implicit)
}
Expand Down Expand Up @@ -102,8 +103,7 @@ export function createExactStatFilters (
} else if (
item.category === ItemCategory.MemoryLine ||
item.category === ItemCategory.SanctumRelic ||
item.category === ItemCategory.Charm ||
item.category === ItemCategory.Tincture
item.category === ItemCategory.Charm
) {
enableAllFilters(ctx.filters)
}
Expand Down

0 comments on commit f8d9078

Please sign in to comment.