File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { access } from 'fs/promises'
2
- import { uniq , uniqBy } from 'lodash-es'
2
+ import { capitalize , uniq , uniqBy } from 'lodash-es'
3
3
import fetch from 'node-fetch'
4
4
import { pinyin } from 'pinyin'
5
5
import simplebig from 'simplebig'
@@ -102,7 +102,7 @@ export async function getOperators() {
102
102
if ( ! prof ) {
103
103
const enSubProfName =
104
104
subProfDictEN ?. [ op . subProfessionId ] ?. subProfessionName ||
105
- subProfDictCN [ op . subProfessionId ] . subProfessionName
105
+ capitalize ( op . subProfessionId )
106
106
107
107
professions . push ( {
108
108
id : op . profession ,
@@ -120,7 +120,7 @@ export async function getOperators() {
120
120
} else if ( ! prof . sub . find ( ( p ) => p . id === op . subProfessionId ) ) {
121
121
const enSubProfName =
122
122
subProfDictEN ?. [ op . subProfessionId ] ?. subProfessionName ||
123
- subProfDictCN [ op . subProfessionId ] . subProfessionName
123
+ capitalize ( op . subProfessionId )
124
124
125
125
prof . sub . push ( {
126
126
id : op . subProfessionId ,
Original file line number Diff line number Diff line change 4540
4540
{ "id" : " librator" , "name" : " 解放者" , "name_en" : " Liberator" },
4541
4541
{ "id" : " fighter" , "name" : " 斗士" , "name_en" : " Fighter" },
4542
4542
{ "id" : " hammer" , "name" : " 撼地者" , "name_en" : " Earthshaker" },
4543
- { "id" : " primguard" , "name" : " 本源近卫" , "name_en" : " 本源近卫 " }
4543
+ { "id" : " primguard" , "name" : " 本源近卫" , "name_en" : " Primguard " }
4544
4544
]
4545
4545
},
4546
4546
{
4646
4646
{ "id" : " phalanx" , "name" : " 阵法术师" , "name_en" : " Phalanx Caster" },
4647
4647
{ "id" : " blastcaster" , "name" : " 轰击术师" , "name_en" : " Blast Caster" },
4648
4648
{ "id" : " primcaster" , "name" : " 本源术师" , "name_en" : " Primal Caster" },
4649
- { "id" : " soulcaster" , "name" : " 塑灵术师" , "name_en" : " 塑灵术师 " }
4649
+ { "id" : " soulcaster" , "name" : " 塑灵术师" , "name_en" : " Soulcaster " }
4650
4650
]
4651
4651
}
4652
4652
]
You can’t perform that action at this time.
0 commit comments