From a62b01cd049ba3837f920bee66cc976f23015e9f Mon Sep 17 00:00:00 2001 From: GoneTone Date: Sat, 30 Jul 2022 21:45:32 +0800 Subject: [PATCH] Character filters add Snezhnaya, Sumeru, Fontaine and Natlan regions --- __tests__/filters/CharacterFilters.test.ts | 12 ++++++++++-- src/filters/CharacterFilters.ts | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/__tests__/filters/CharacterFilters.test.ts b/__tests__/filters/CharacterFilters.test.ts index f264687..f0d98d5 100644 --- a/__tests__/filters/CharacterFilters.test.ts +++ b/__tests__/filters/CharacterFilters.test.ts @@ -49,7 +49,11 @@ describe('Character Filters', () => { expect(CharacterFilters.Region).toStrictEqual({ Mondstadt: '27', LiyueHarbor: '43', - InazumaCity: '60' + InazumaCity: '60', + Snezhnaya: '1414', + Sumeru: '1418', + Fontaine: '1434', + Natlan: '1450' }) }) @@ -113,7 +117,11 @@ describe('Character Filters', () => { expect(CharacterFilters.Region).toStrictEqual({ Mondstadt: '39', LiyueHarbor: '49', - InazumaCity: '59' + InazumaCity: '59', + Snezhnaya: '1405', + Sumeru: '1430', + Fontaine: '1433', + Natlan: '1449' }) }) diff --git a/src/filters/CharacterFilters.ts b/src/filters/CharacterFilters.ts index 9e9363d..a91ad54 100644 --- a/src/filters/CharacterFilters.ts +++ b/src/filters/CharacterFilters.ts @@ -47,7 +47,11 @@ export class CharacterFilters { public static Region = { Mondstadt: '27', LiyueHarbor: '43', - InazumaCity: '60' + InazumaCity: '60', + Snezhnaya: '1414', + Sumeru: '1418', + Fontaine: '1434', + Natlan: '1450' } public static Quality = { @@ -103,7 +107,11 @@ export class CharacterFilters { this.Region = { Mondstadt: filters[1]?.values[0]?.id ?? '27', LiyueHarbor: filters[1]?.values[1]?.id ?? '43', - InazumaCity: filters[1]?.values[2]?.id ?? '60' + InazumaCity: filters[1]?.values[2]?.id ?? '60', + Snezhnaya: filters[1]?.values[3]?.id ?? '1414', + Sumeru: filters[1]?.values[4]?.id ?? '1418', + Fontaine: filters[1]?.values[5]?.id ?? '1434', + Natlan: filters[1]?.values[6]?.id ?? '1450' } this.Quality = { Star5: filters[2]?.values[0]?.id ?? '3',