-
Notifications
You must be signed in to change notification settings - Fork 3
/
restorator_config.js
65 lines (58 loc) · 1.61 KB
/
restorator_config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
"use strict";
module.exports = {
// Directory with DC xml files that need to be restored is indicated.
targetDir: "resources/OUT",
// This directory will contain files with restored strings.
outDir: "resources/OUT_RESTORED",
// Name of directory, contains string sheets of the items.
stringCategory: "StrSheet_Item",
// Name of directory, contains the unique information to resolve items.
dataCategory: "ItemData",
// Restore only strings matching the given pattern.
// \\p{Script=Han} - strings, contains chinese characters.
// ^$ - empty strings.
// | - symbol of logic "or".
pattern: new RegExp("\\p{Script=Han}|^$", "u"),
// Array of attributes by which it is necessary to found similar elements.
signature: [
"category",
"name",
"icon",
"accessoryColorId",
"autoPickUpEffectId",
"changeEnchantFxId",
"decompositionId",
"equipmentSetId",
"itemMixId",
"linkCardId",
"linkChangeColorListId",
"linkCrestId",
"linkCustomizingId",
"linkEnchantId",
"linkEquipmentExpId",
"linkEquipmentGroupId",
"linkEquipmentId",
"linkLookInfoId",
"linkMasterpieceEnchantId",
"linkMasterpiecePassivityCategoryId",
"linkMasterpiecePassivityId",
"linkMaterialEnchantId",
"linkMaterialRepairId",
"linkPassivityCategoryId",
"linkPassivityId",
"linkPetAdultId",
"linkPetOrbId",
"linkRawStoneId",
"linkSkillId",
"linkSkillPeriodDay",
"linkSocialId",
"periodItemCategoryId",
"seasonId",
"styleCostumeId"
],
// Array of attributes to which the translation will be made.
attributes: [
"string",
"tooltip"
]
};