Skip to content
This repository has been archived by the owner on Mar 23, 2022. It is now read-only.

Commit

Permalink
Added kaleidoscape dimension to tier list #335
Browse files Browse the repository at this point in the history
Signed-off-by: RaenonX <[email protected]>
Added translation of `kaleidoscape` dimension #335

Signed-off-by: RaenonX <[email protected]>
  • Loading branch information
RaenonX committed Jan 9, 2022
1 parent f6c1167 commit 183405e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api-def
2 changes: 2 additions & 0 deletions src/components/pages/tier/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const sortFunc: SortFuncLookup = {
normalAi: sortDescending({getComparer: (element) => getTierRanking(element.tierNote, 'normalAi')}),
normalCoop: sortDescending({getComparer: (element) => getTierRanking(element.tierNote, 'normalCoop')}),
sharedSkill: sortDescending({getComparer: (element) => getTierRanking(element.tierNote, 'sharedSkill')}),
kaleidoscape: sortDescending({getComparer: (element) => getTierRanking(element.tierNote, 'kaleidoscape')}),
avgRanking: sortDescending({
getComparer: (element) => {
const dimensionKeys = Object.keys(Dimension);
Expand All @@ -45,6 +46,7 @@ export const orderName: {[sortBy in SortOrder]: GetTranslationFunction} = {
normalAi: (t) => t.game.unitTier.dimension.normalAi,
normalCoop: (t) => t.game.unitTier.dimension.normalCoop,
sharedSkill: (t) => t.game.unitTier.dimension.sharedSkill,
kaleidoscape: (t) => t.game.unitTier.dimension.kaleidoscape,
};

export const rankingColor: {[ranking in Ranking]: Property.Color} = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/tier/out/all/entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const TierListEntry = ({tierNote, keyPointsData, unitInfo}: Props) => {
const dimension = item as DimensionKey;

return (
<Col xs={4} md lg={3} key={item}>
<Col xs={4} lg={3} key={item}>
<TierNote
dimension={dimension}
tierNote={tierNote ? tierNote.tier[dimension] : undefined}
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/translations/cht/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ export const translation: TranslationStruct = {
normalCoop: '一般 (共鬥)',
normalAi: '一般 (AI)',
sharedSkill: '共享技能',
kaleidoscape: '萬花筒',
},
display: {
conSolo: '虛無 (單人)',
Expand All @@ -447,6 +448,7 @@ export const translation: TranslationStruct = {
normalCoop: '一般 (共鬥)',
normalAi: '一般 (AI)',
sharedSkill: '共享',
kaleidoscape: '萬花筒',
all: '全部',
},
sort: {
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/translations/en/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ export const translation: TranslationStruct = {
normalCoop: 'Normal (Co-op)',
normalAi: 'Normal (AI)',
sharedSkill: 'Shared Skill',
kaleidoscape: 'Kaleidoscape',
},
display: {
conSolo: 'CoN (Solo)',
Expand All @@ -481,6 +482,7 @@ export const translation: TranslationStruct = {
normalCoop: 'Normal (Co-op)',
normalAi: 'Normal (AI)',
sharedSkill: 'SS',
kaleidoscape: 'Kaleidoscape',
all: 'Show All',
},
sort: {
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/translations/jp/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ export const translation: TranslationStruct = {
normalCoop: '通常 (マルチ)',
normalAi: '通常 (AI)',
sharedSkill: 'シェアスキル',
kaleidoscape: 'カレイドラビリンス',
},
display: {
conSolo: '虚無 (ソロ)',
Expand All @@ -455,6 +456,7 @@ export const translation: TranslationStruct = {
normalCoop: '通常 (マルチ)',
normalAi: '通常 (AI)',
sharedSkill: 'シェア',
kaleidoscape: 'カレイドラビリンス',
all: '全部',
},
sort: {
Expand Down

0 comments on commit 183405e

Please sign in to comment.