fix: tiers off by 1

This commit is contained in:
tresabhi committed 2024-11-12 21:38:00 -06:00
1 parent d165a1fc35
commit 429076c297
1 file changed
+6 -3
@@ -1439,7 +1439,10 @@ export async function definitions() {
entry.include.push({
filter_type: {
$case: 'tiers',
value: { min: includeRaw.minLevel, max: includeRaw.maxLevel },
value: {
min: (includeRaw.minLevel - 1) as Tier,
max: (includeRaw.maxLevel - 1) as Tier,
},
},
});
} else if ('name' in includeRaw) {
@@ -1540,8 +1543,8 @@ export async function definitions() {
filter_type: {
$case: 'tiers',
value: {
min: includeRaw.minLevel,
max: includeRaw.maxLevel,
min: (includeRaw.minLevel - 1) as Tier,
max: (includeRaw.maxLevel - 1) as Tier,
},
},
});