Skip to content

Commit

Permalink
Character filters add Snezhnaya, Sumeru, Fontaine and Natlan regions
Browse files Browse the repository at this point in the history
  • Loading branch information
GoneTone committed Jul 30, 2022
1 parent 2a531f7 commit a62b01c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions __tests__/filters/CharacterFilters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
})
})

Expand Down Expand Up @@ -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'
})
})

Expand Down
12 changes: 10 additions & 2 deletions src/filters/CharacterFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit a62b01c

Please sign in to comment.