-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
204 lines (197 loc) · 5.69 KB
/
config.py
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
import tomllib
from argparse import Namespace
from pathlib import Path
from typing import Any
pyproject: dict[str, dict[str, Any]] = tomllib.loads(
Path(__file__).with_name("pyproject.toml").read_text(encoding="utf-8")
)
filename: str = pyproject["tool"]["poetry"]["name"]
class Config:
DATA_DIRS = (
r"./Github/ArknightsGameData/zh_CN/gamedata",
r"./Github/ArknightsGameResource/gamedata",
)
info: dict[str, Any] = pyproject["tool"]["poetry"]
xlsx_file_path = f"./docs/website/{filename}.xlsx"
game_data_config = Namespace(
pickle_file_path=f"./tmp/{filename}.pkl",
json_file_path=f"./docs/{filename}.json",
)
dump_config = Namespace(
FONT_NAME="Sarasa Mono Slab SC",
output_file_path=game_data_config.pickle_file_path,
# 名称前缀
name_prefix=["发言人", "审判官", "大审判官", "小", "“"],
# 名称后缀
name_suffix=["骑士", "?", "”"],
# 排除合并后的名称
erase_names=["小黑", "小游客", "小村民", "教宗骑士", "感染者骑士"],
# 合并名称
merge_names=[
("?????", "???", "?"),
("“焰尾”索娜", "“焰尾”", "焰尾", "索娜"),
("伊万杰利斯塔十一世", "教宗"),
("博士", "Dr."),
("埃内斯托", "龙舌兰"),
("埃尼斯", "苍苔"), # 代号尚未在剧情中出现
("塞诺蜜", "砾"),
("娜塔莉娅", "早露"),
(
"微光守夜人",
"不叫微光守夜人的黎博利",
"苦难陈述者",
"菲亚梅塔",
), # unstable sort
("恩希欧迪斯", "银灰"),
("拉维妮娅", "斥罪"),
("无言的达里奥", "达里奥"),
("柳德米拉", "弑君者"),
("玛嘉烈", "临光"),
("玛莉娅", "瑕光"),
("祖玛玛", "森蚺"),
("艾沃娜", "野鬃"),
("莱昂图索", "伺夜"),
("费德里科", "送葬人"),
("费斯特", "白铁"),
("赫尔昏佐伦", "巫王"),
("里凯莱", "隐现"),
("阿芙朵嘉", "鸿雪"),
("阿赫茉妮", "洛西莉", "和弦"),
("阿黛尔", "艾雅法拉"),
("陈晖洁", "陈"),
],
)
count_config = Namespace(
output_file_path=game_data_config.pickle_file_path,
# TODO: use lower case
known_commands=[
"addfavor",
"additem",
"AddItem",
"animtextclean",
"avatarId",
"background",
"Background",
"backgroundtween",
"backgroundTween",
"Backgroundtween",
"BackgroundTween",
"Battle",
"bgeffect",
"bgEffect",
"blocker",
"Blocker",
"cameraEffect",
"CameraEffect",
"camerafocusto",
"camerascale",
"camerashake",
"CameraShake",
"cgitem",
"chaa",
"character",
"Character",
"characteraction",
"Characteraction",
"CharacterCutin",
"charslot",
"Charslot",
"charslsot",
"condition",
"Condition",
"ConsumeGuideOnStoryEnd",
"curtain",
"dalay",
"daley",
"dealy",
"delat",
"delau",
"delay",
"Delay",
"DELAY",
"delay9ti",
"delayt",
"dialo",
"duration",
"effect",
"Effect",
"emoji",
"end",
"End",
"executeactionarray",
"fadetime",
"focusout",
"foginview",
"fognotinview",
"gacha",
"GotoPage",
"gridbg",
"header",
"hidecgitem",
"hideitem",
"hideItem",
"HideItem",
"image",
"Image",
"imagerotate",
"imagetween",
"imageTween",
"ImageTween",
"imgeffect",
"InputBlocker",
"interlude",
"largebg",
"largebgtween",
"move",
"musicvolume",
"Musicvolume",
"MusicVolume",
"musicvolune",
"Obtain",
"OptionBranch",
"orderrift",
"palysound",
"playanim",
"playmusic",
"playMusic",
"PlayMusic",
"playsound",
"playSound",
"PlaySound",
"predicate",
"Predicate",
"resetcamera",
"SandboxBattle",
"save",
"SetConditionProgress",
"showitem",
"Showitem",
"ShowItem",
"skipnode",
"SkipToThis",
"soundvolume",
"soundVolume",
"SoundVolume",
"StartBattle",
"stickerclear",
"stopmucis",
"stopmusic",
"Stopmusic",
"StopMusic",
"stopsound",
"stopSound",
"Stopsound",
"StopSound",
"subtitle",
"summonenemy",
"summontrap",
"theater",
"timerclear",
"timersticker",
"Tutorial",
"uioperation",
"verticalbg",
"Video",
"withdraw",
],
)