-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathconstants.py
160 lines (147 loc) · 4.73 KB
/
constants.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
import re
DESCRIPTION_LINK_REGEX = re.compile(r"\[.*?\]\{.*?:(.*?)\}")
STAT_STAGE_MULTIPLIERS = {
-6: 2 / 8,
-5: 2 / 7,
-4: 2 / 6,
-3: 2 / 5,
-2: 2 / 4,
-1: 2 / 3,
0: 2 / 2,
1: 3 / 2,
2: 4 / 2,
3: 5 / 2,
4: 6 / 2,
5: 7 / 2,
6: 8 / 2,
}
MOVE_META_CATEGORIES = [
"Inflicts damage",
"No damage; inflicts status ailment",
"No damage; lowers target's stats or raises user's stats",
"No damage; heals the user",
"Inflicts damage; inflicts status ailment",
"No damage; inflicts status ailment; raises target's stats",
"Inflicts damage; lowers target's stats",
"Inflicts damage; raises user's stats",
"Inflicts damage; absorbs damage done to heal the user",
"One-hit KO",
"Effect on the whole field",
"Effect on one side of the field",
"Forces target to switch out",
"Unique effect",
]
MOVE_AILMENTS = {
-1: "????",
0: "none",
1: "Paralysis",
2: "Sleep",
3: "Freeze",
4: "Burn",
5: "Poison",
6: "Confusion",
7: "Infatuation",
8: "Trap",
9: "Nightmare",
12: "Torment",
13: "Disable",
14: "Yawn",
15: "Heal Block",
17: "No type immunity",
18: "Leech Seed",
19: "Embargo",
20: "Perish Song",
21: "Ingrain",
24: "Silence",
}
TYPES = [
None,
"Normal",
"Fighting",
"Flying",
"Poison",
"Ground",
"Rock",
"Bug",
"Ghost",
"Steel",
"Fire",
"Water",
"Grass",
"Electric",
"Psychic",
"Ice",
"Dragon",
"Dark",
"Fairy",
"???",
"Shadow",
]
MOVE_TARGETS = [
None,
"One specific move. How this move is chosen depends upon on the move being used.",
"One other Pokémon on the field, selected by the trainer. Stolen moves reuse the same target.",
"The user's ally (if any).",
"The user's side of the field. Affects the user and its ally (if any).",
"Either the user or its ally, selected by the trainer.",
"The opposing side of the field. Affects opposing Pokémon.",
"The user.",
"One opposing Pokémon, selected at random.",
"Every other Pokémon on the field.",
"One other Pokémon on the field, selected by the trainer.",
"All opposing Pokémon.",
"The entire field. Affects all Pokémon.",
"The user and its allies.",
"Every Pokémon on the field.",
]
DAMAGE_CLASSES = [None, "Status", "Physical", "Special"]
TYPE_EFFICACY = [
None,
[None, 1, 1, 1, 1, 1, 0.5, 1, 0, 0.5, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[None, 2, 1, 0.5, 0.5, 1, 2, 0.5, 0, 2, 1, 1, 1, 1, 0.5, 2, 1, 2, 0.5],
[None, 1, 2, 1, 1, 1, 0.5, 2, 1, 0.5, 1, 1, 2, 0.5, 1, 1, 1, 1, 1],
[None, 1, 1, 1, 0.5, 0.5, 0.5, 1, 0.5, 0, 1, 1, 2, 1, 1, 1, 1, 1, 2],
[None, 1, 1, 0, 2, 1, 2, 0.5, 1, 2, 2, 1, 0.5, 2, 1, 1, 1, 1, 1],
[None, 1, 0.5, 2, 1, 0.5, 1, 2, 1, 0.5, 2, 1, 1, 1, 1, 2, 1, 1, 1],
[None, 1, 0.5, 0.5, 0.5, 1, 1, 1, 0.5, 0.5, 0.5, 1, 2, 1, 2, 1, 1, 2, 0.5],
[None, 0, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 0.5, 1],
[None, 1, 1, 1, 1, 1, 2, 1, 1, 0.5, 0.5, 0.5, 1, 0.5, 1, 2, 1, 1, 2],
[None, 1, 1, 1, 1, 1, 0.5, 2, 1, 2, 0.5, 0.5, 2, 1, 1, 2, 0.5, 1, 1],
[None, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 0.5, 0.5, 1, 1, 1, 0.5, 1, 1],
[None, 1, 1, 0.5, 0.5, 2, 2, 0.5, 1, 0.5, 0.5, 2, 0.5, 1, 1, 1, 0.5, 1, 1],
[None, 1, 1, 2, 1, 0, 1, 1, 1, 1, 1, 2, 0.5, 0.5, 1, 1, 0.5, 1, 1],
[None, 1, 2, 1, 2, 1, 1, 1, 1, 0.5, 1, 1, 1, 1, 0.5, 1, 1, 0, 1],
[None, 1, 1, 2, 1, 2, 1, 1, 1, 0.5, 0.5, 0.5, 2, 1, 1, 0.5, 2, 1, 1],
[None, 1, 1, 1, 1, 1, 1, 1, 1, 0.5, 1, 1, 1, 1, 1, 1, 2, 1, 0],
[None, 1, 0.5, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 0.5, 0.5],
[None, 1, 2, 1, 0.5, 1, 1, 1, 1, 0.5, 0.5, 1, 1, 1, 1, 1, 2, 2, 1],
]
ARTISTS = {
405452200656109569: "HiroWilde#6159",
304098467192635392: "@superjedi224",
130438329484181504: "@haltfire302",
285861483412193280: "@anoea",
326895657803710477: "@chaotichavoc",
494656111627075594: "@dotkura",
711892049842012190: "@somebluepigeon",
444692790689923072: "@5h3s",
550289905079812106: "@rengokukyojuro8008",
810031895190306816: "@ironlegend09",
611659645760831506: "@dagger_mace",
850079219681722398: "@foxrii_",
712521240602214400: "@blubambii",
979108831118364774: "@clumsy.kenji",
745825974880436294: "@jasreetdhillon",
690194873650905155: "@notchri",
676169170400051201: "Misfortune#8519",
559768825361596442: "@.typenull.",
484526479770910728: "@stranger1200",
859645802899963923: "@a_dood_1336",
336148113465278464: "@bren.__.",
243763234685976577: "@metspek",
512697200879468549: "@asuka03",
118587743746916353: "@taz989",
874420399608332370: "@angeljanin",
286902705115627520: "@not_zack",
449792537272516628: "@jynxerso",
}