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

Commit

Permalink
ADD - Enmity mod calculator prototype #302
Browse files Browse the repository at this point in the history
Signed-off-by: RaenonX <[email protected]>
  • Loading branch information
RaenonX committed Nov 7, 2021
1 parent 791511a commit 5374c9c
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 5 deletions.
4 changes: 0 additions & 4 deletions pages/[lang]/rotations.ts

This file was deleted.

4 changes: 4 additions & 0 deletions pages/[lang]/tools/enmity/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {EnmityCalculator} from '../../../../src/components/pages/calc/enmity/main';


export default EnmityCalculator;
4 changes: 4 additions & 0 deletions pages/[lang]/tools/rotation/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {Constructing} from '../../../../src/components/pages/constructing';


export default Constructing;
6 changes: 6 additions & 0 deletions src/components/pages/calc/enmity/main.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from 'react';


export const EnmityCalculator = () => {
return <>WIP</>;
};
3 changes: 2 additions & 1 deletion src/const/path/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export enum GeneralPath {
SKILL_SUP = '/skill/sup',
STORY = '/story',
// Tools
ROTATION_CALC = '/rotations',
ROTATION_CALC = '/tools/rotation',
ENMITY_CALC = '/tools/enmity',
// Others
UPDATE_UNIT_NAME_REF = '/name',
// Not game related
Expand Down
6 changes: 6 additions & 0 deletions src/i18n/translations/cht/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,12 @@ export const translation: TranslationStruct = {
description: '設定物件名稱的頁面。',
},
},
calc: {
enmity: {
title: '背水倍率計算機',
description: '計算背水倍率在特定 HP,或是要達到特定背水倍率所需要的 HP 的工具。',
},
},
story: {
unit: {
title: '【角色故事】{{unitName}}',
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/translations/definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ export type TranslationStruct = {
info: PageMetaTranslations,
name: PageMetaTranslations,
},
calc: {
enmity: PageMetaTranslations,
},
story: {
unit: PageMetaTranslations,
}
Expand Down
7 changes: 7 additions & 0 deletions src/i18n/translations/en/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,13 @@ export const translation: TranslationStruct = {
description: 'Page to configure the custom unit names.',
},
},
calc: {
enmity: {
title: 'Enmity Mod Calculator',
description: 'Tool to calculate the enmity mod at a certain HP level, ' +
'or the HP level required for a certain enmity mod.',
},
},
story: {
unit: {
title: '【Unit Story】{{unitName}}',
Expand Down
6 changes: 6 additions & 0 deletions src/i18n/translations/jp/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,12 @@ export const translation: TranslationStruct = {
description: 'ユニット名前を設定する。',
},
},
calc: {
enmity: {
title: 'TBA',
description: 'TBA',
},
},
story: {
unit: {
title: '【ユニットストーリー】{{unitName}}',
Expand Down
1 change: 1 addition & 0 deletions src/utils/meta/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const metaTransFunctions: { [path in PagePath]: GetTranslationFunction<Pa
[GeneralPath.ABOUT]: (t) => t.meta.inUse.about,
[GeneralPath.SPECIAL_THANKS]: (t) => t.meta.inUse.thanks,
[GeneralPath.UPDATE_UNIT_NAME_REF]: (t) => t.meta.inUse.unit.name,
[GeneralPath.ENMITY_CALC]: (t) => t.meta.inUse.calc.enmity,
[AuthPath.SIGN_IN]: (t) => t.meta.inUse.auth.signIn,
// Constructing paths
[GeneralPath.SKILL_SUP]: (t) => t.meta.temp.constructing,
Expand Down

0 comments on commit 5374c9c

Please sign in to comment.