Skip to content

Commit

Permalink
Updated default tierlist
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Jul 23, 2021
1 parent 51b669b commit 14b6377
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
34 changes: 17 additions & 17 deletions assets/db/characters.json
Expand Up @@ -1979,7 +1979,7 @@
"isFemale": true,
"region": "liyue",
"role": "mainDps",
"tier": "b",
"tier": "a",
"birthday": "02/14",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -2677,7 +2677,7 @@
"isFemale": false,
"region": "mondstadt",
"role": "utility",
"tier": "s",
"tier": "ss",
"birthday": "02/29",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -3349,7 +3349,7 @@
"isFemale": false,
"region": "liyue",
"role": "supportDps",
"tier": "b",
"tier": "a",
"birthday": "09/07",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -6701,7 +6701,7 @@
"isFemale": true,
"region": "liyue",
"role": "mainDps",
"tier": "s",
"tier": "ss",
"birthday": "12/02",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -7419,7 +7419,7 @@
"isFemale": true,
"region": "liyue",
"role": "mainDps",
"tier": "s",
"tier": "ss",
"birthday": "07/15",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -8070,7 +8070,7 @@
"isFemale": true,
"region": "mondstadt",
"role": "utility",
"tier": "a",
"tier": "s",
"birthday": "03/14",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -8779,7 +8779,7 @@
"isFemale": false,
"region": "mondstadt",
"role": "supportDps",
"tier": "b",
"tier": "a",
"birthday": "11/30",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -9449,7 +9449,7 @@
"isFemale": false,
"region": "inazuma",
"role": "supportDps",
"tier": "a",
"tier": "s",
"birthday": "10/29",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -10120,7 +10120,7 @@
"isFemale": true,
"region": "liyue",
"role": "mainDps",
"tier": "a",
"tier": "s",
"birthday": "11/20",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -13519,7 +13519,7 @@
"isFemale": true,
"region": "mondstadt",
"role": "utility",
"tier": "c",
"tier": "b",
"birthday": "03/21",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -15514,7 +15514,7 @@
"isFemale": true,
"region": "mondstadt",
"role": "mainDps",
"tier": "b",
"tier": "a",
"birthday": "01/24",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -16210,7 +16210,7 @@
"isFemale": true,
"region": "mondstadt",
"role": "utility",
"tier": "a",
"tier": "s",
"birthday": "11/26",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -19695,7 +19695,7 @@
"isFemale": false,
"region": "mondstadt",
"role": "utility",
"tier": "s",
"tier": "ss",
"birthday": "06/16",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -20344,7 +20344,7 @@
"isFemale": true,
"region": "liyue",
"role": "supportDps",
"tier": "a",
"tier": "s",
"birthday": "11/02",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -21673,7 +21673,7 @@
"isFemale": false,
"region": "liyue",
"role": "supportDps",
"tier": "s",
"tier": "ss",
"birthday": "10/09",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -23644,7 +23644,7 @@
"isFemale": false,
"region": "liyue",
"role": "supportDps",
"tier": "s",
"tier": "ss",
"birthday": "12/31",
"ascensionMaterials": [
{
Expand Down Expand Up @@ -26214,7 +26214,7 @@
"isFemale": false,
"region": "anotherWorld",
"role": "utility",
"tier": "c",
"tier": "b",
"ascensionMaterials": [
{
"rank": 1,
Expand Down
6 changes: 6 additions & 0 deletions lib/infrastructure/genshin_service.dart
Expand Up @@ -161,6 +161,11 @@ class GenshinServiceImpl implements GenshinService {
List<TierListRowModel> getDefaultCharacterTierList(List<int> colors) {
assert(colors.length == 5);

final ssTier = _charactersFile.characters
.where((char) => !char.isComingSoon && char.tier == 'ss')
.map((char) => Assets.getCharacterPath(char.image))
.toList();

final sTier = _charactersFile.characters
.where((char) => !char.isComingSoon && char.tier == 's')
.map((char) => Assets.getCharacterPath(char.image))
Expand All @@ -183,6 +188,7 @@ class GenshinServiceImpl implements GenshinService {
.toList();

return <TierListRowModel>[
TierListRowModel.row(tierText: 'SS', tierColor: colors.first, charImgs: ssTier),
TierListRowModel.row(tierText: 'S', tierColor: colors.first, charImgs: sTier),
TierListRowModel.row(tierText: 'A', tierColor: colors[1], charImgs: aTier),
TierListRowModel.row(tierText: 'B', tierColor: colors[2], charImgs: bTier),
Expand Down

0 comments on commit 14b6377

Please sign in to comment.