Skip to content

Commit 01e2b07

Browse files
authored
Update index.js
1 parent fd9045d commit 01e2b07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ships/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function readFilesFromLanguage(lang = "EN") {
3636
let ships = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "AzurLaneData", lang, "sharecfgdata", "ship_data_template.json")).toString());
3737
let stats = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "AzurLaneData", lang, "sharecfgdata", "ship_data_statistics.json")).toString());
3838
let types = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "AzurLaneData", lang, "ShareCfg", "ship_data_by_type.json")).toString());
39-
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 17, 18, 19].forEach(type => {
39+
types.all.forEach(type => {
4040
if (!TYPES[type]) TYPES[type] = {};
4141
if (!TYPES[type][lang.toLowerCase()]) TYPES[type][lang.toLowerCase()] = types[type].type_name.trim();
4242
})

0 commit comments

Comments
 (0)