Added move categories. #41

This commit is contained in:
Eevee 2009-11-08 17:00:45 -08:00
parent 570f34554e
commit 11c0bb01fd
3 changed files with 456 additions and 0 deletions

View file

@ -0,0 +1,38 @@
id,name,can_affect_user
1,Regular damage,1
2,Power varies,1
3,Special damage,1
4,Double damage,1
5,Faints,1
6,Critical,0
7,Ignores type,0
8,Ignores accuracy modifiers,0
9,Meta (move uses another move, damage based on other damage),0
10,Multiple turns/hits,0
11,Charge or recovery turn,0
12,Heals HP,1
13,Cures status,1
14,Protection,1
15,Attack up,1
16,Attack down,1
17,Defense up,1
18,Defense down,1
19,Special Attack up,1
20,Special Attack down,1
21,Special Defense up,1
22,Special Defense down,1
23,Speed up,1
24,Speed down,1
25,Accuracy up,1
26,Accuracy down,1
27,Evasion up,1
28,Evasion down,1
29,Sleep,1
30,Burn,1
31,Paralysis,1
32,Freeze,1
33,Poison,1
34,Confusion,1
35,Flinch,1
36,Trap,1
37,Weather,0
1 id,name,can_affect_user
2 1,Regular damage,1
3 2,Power varies,1
4 3,Special damage,1
5 4,Double damage,1
6 5,Faints,1
7 6,Critical,0
8 7,Ignores type,0
9 8,Ignores accuracy modifiers,0
10 9,Meta (move uses another move, damage based on other damage),0
11 10,Multiple turns/hits,0
12 11,Charge or recovery turn,0
13 12,Heals HP,1
14 13,Cures status,1
15 14,Protection,1
16 15,Attack up,1
17 16,Attack down,1
18 17,Defense up,1
19 18,Defense down,1
20 19,Special Attack up,1
21 20,Special Attack down,1
22 21,Special Defense up,1
23 22,Special Defense down,1
24 23,Speed up,1
25 24,Speed down,1
26 25,Accuracy up,1
27 26,Accuracy down,1
28 27,Evasion up,1
29 28,Evasion down,1
30 29,Sleep,1
31 30,Burn,1
32 31,Paralysis,1
33 32,Freeze,1
34 33,Poison,1
35 34,Confusion,1
36 35,Flinch,1
37 36,Trap,1
38 37,Weather,0

View file

@ -0,0 +1,402 @@
move_effect_id,move_effect_category_id,affects_user
1,1,0
2,29,0
3,1,0
3,33,0
4,1,0
4,12,1
5,1,0
5,30,0
6,1,0
6,32,0
7,1,0
7,31,0
8,1,0
8,5,1
9,1,0
9,12,1
10,9,0
11,15,1
12,17,1
14,19,1
17,27,1
18,1,0
18,8,0
19,16,0
20,18,0
21,24,0
24,26,0
25,28,0
26,13,1
27,10,0
27,3,0
28,1,0
28,10,0
28,34,1
30,1,0
30,10,0
32,1,0
32,35,0
33,12,1
34,33,0
35,1,0
36,14,1
37,1,0
37,30,0
37,31,0
37,32,0
38,29,1
38,12,1
38,13,1
39,5,0
39,8,0
40,1,0
40,6,0
40,11,0
41,3,0
42,3,0
43,1,0
43,10,0
43,36,0
44,1,0
44,6,0
45,1,0
45,10,0
46,1,0
46,3,1
47,14,1
49,1,0
49,3,1
50,34,0
51,15,1
52,17,1
53,23,1
54,19,1
55,21,1
58,9,0
59,16,0
60,18,0
61,24,0
63,22,0
66,14,1
67,33,0
68,31,0
69,1,0
69,16,0
70,1,0
70,18,0
71,1,0
71,24,0
72,1,0
72,20,0
73,1,0
73,22,0
74,1,0
74,26,0
76,1,0
76,11,0
76,35,0
77,1,0
77,34,0
78,1,0
78,10,0
78,33,0
79,1,0
79,8,0
80,3,1
80,14,1
81,1,0
81,11,0
82,1,0
82,15,1
83,9,0
84,9,0
85,3,0
85,12,1
88,3,0
88,7,0
89,3,0
89,7,0
90,3,0
92,3,0
92,3,1
92,12,0
92,12,1
93,1,0
93,35,0
94,14,0
96,9,0
98,9,0
99,5,0
100,1,0
100,2,0
102,1,0
102,14,0
103,13,1
104,1,0
105,1,0
105,2,0
105,10,0
106,1,0
107,36,0
107,8,0
108,3,0
108,10,0
109,27,1
110,3,1
110,3,0
110,10,0
110,24,1
110,15,1
110,17,1
112,14,1
114,28,0
114,27,0
114,8,0
115,5,0
115,5,1
115,10,0
116,37,0
117,14,1
118,1,0
118,2,0
119,15,0
119,34,0
120,1,0
120,2,0
122,1,0
122,2,0
123,1,0
123,2,0
123,12,0
124,1,0
124,2,0
125,14,1
126,1,0
126,30,0
127,1,0
127,2,0
129,1,0
129,4,0
130,1,0
130,13,1
131,3,0
133,12,1
136,1,0
136,2,0
137,37,0
138,37,0
139,1,0
139,17,1
140,1,0
140,15,1
141,1,0
141,15,1
141,17,1
141,19,1
141,21,1
141,23,1
143,3,1
143,15,1
145,3,0
146,1,0
146,17,1
146,11,0
147,1,0
147,35,0
148,1,0
149,1,0
149,7,0
149,10,0
150,1,0
151,1,0
151,35,0
152,1,0
152,11,0
153,1,0
153,31,0
155,1,0
155,10,0
155,7,0
156,1,0
156,11,0
157,17,1
159,1,0
159,35,0
160,1,0
160,10,0
161,17,1
161,21,1
162,1,0
162,2,0
163,12,1
165,37,0
167,19,0
167,34,0
168,30,0
169,16,0
169,20,0
169,5,1
170,1,0
170,4,0
171,1,0
172,1,0
172,4,0
172,13,0
173,14,1
174,9,0
175,21,1
179,8,0
180,12,1
181,9,0
182,36,1
182,12,1
183,1,0
183,16,1
183,18,1
186,1,0
186,4,0
187,1,0
188,29,0
189,1,0
190,3,0
191,1,0
191,2,0
192,8,0
194,13,1
196,9,0
197,1,0
197,2,0
198,1,0
198,35,0
198,31,0
198,16,0
198,26,0
198,29,0
198,32,0
199,1,0
199,3,1
200,34,0
201,1,0
201,6,0
201,30,0
203,1,0
203,33,0
204,1,0
204,4,0
205,1,0
205,20,1
206,16,0
206,18,0
207,20,0
207,22,0
208,1,0
209,15,1
209,17,1
210,1,0
210,6,0
210,33,0
212,19,1
212,21,1
213,15,1
213,23,1
215,12,1
217,28,0
217,8,0
218,1,0
218,4,0
218,13,0
219,1,0
219,24,1
220,1,0
220,2,0
221,5,1
221,12,1
221,13,1
222,1,0
222,4,0
223,1,0
223,2,0
224,1,0
225,1,0
225,4,0
226,23,1
227,15,1
227,17,1
227,19,1
227,21,1
227,23,1
228,3,0
229,1,0
230,1,0
230,18,1
230,22,1
231,1,0
231,2,0
232,1,0
232,2,0
234,1,0
234,2,0
235,13,1
236,1,0
236,2,0
238,1,0
238,2,0
239,15,1
239,16,1
239,17,1
239,18,1
242,9,0
243,9,0
246,1,0
246,2,0
247,1,0
249,1,0
252,12,1
254,1,0
254,3,1
254,30,0
255,1,0
255,3,1
255,7,0
256,1,0
256,11,0
257,1,0
257,11,0
258,1,0
259,28,0
261,1,0
261,32,0
262,1,0
262,10,0
262,36,0
262,4,0
263,1,0
263,3,1
263,31,0
264,1,0
264,11,0
266,20,0
268,1,0
268,34,0
269,1,0
270,1,0
270,3,1
271,3,1
271,12,1
271,13,1
272,1,0
272,22,0
273,1,0
273,11,0
274,1,0
274,30,0
274,35,0
275,1,0
275,32,0
275,35,0
276,1,0
276,31,0
276,35,0
277,1,0
277,19,1
1 move_effect_id move_effect_category_id affects_user
2 1 1 0
3 2 29 0
4 3 1 0
5 3 33 0
6 4 1 0
7 4 12 1
8 5 1 0
9 5 30 0
10 6 1 0
11 6 32 0
12 7 1 0
13 7 31 0
14 8 1 0
15 8 5 1
16 9 1 0
17 9 12 1
18 10 9 0
19 11 15 1
20 12 17 1
21 14 19 1
22 17 27 1
23 18 1 0
24 18 8 0
25 19 16 0
26 20 18 0
27 21 24 0
28 24 26 0
29 25 28 0
30 26 13 1
31 27 10 0
32 27 3 0
33 28 1 0
34 28 10 0
35 28 34 1
36 30 1 0
37 30 10 0
38 32 1 0
39 32 35 0
40 33 12 1
41 34 33 0
42 35 1 0
43 36 14 1
44 37 1 0
45 37 30 0
46 37 31 0
47 37 32 0
48 38 29 1
49 38 12 1
50 38 13 1
51 39 5 0
52 39 8 0
53 40 1 0
54 40 6 0
55 40 11 0
56 41 3 0
57 42 3 0
58 43 1 0
59 43 10 0
60 43 36 0
61 44 1 0
62 44 6 0
63 45 1 0
64 45 10 0
65 46 1 0
66 46 3 1
67 47 14 1
68 49 1 0
69 49 3 1
70 50 34 0
71 51 15 1
72 52 17 1
73 53 23 1
74 54 19 1
75 55 21 1
76 58 9 0
77 59 16 0
78 60 18 0
79 61 24 0
80 63 22 0
81 66 14 1
82 67 33 0
83 68 31 0
84 69 1 0
85 69 16 0
86 70 1 0
87 70 18 0
88 71 1 0
89 71 24 0
90 72 1 0
91 72 20 0
92 73 1 0
93 73 22 0
94 74 1 0
95 74 26 0
96 76 1 0
97 76 11 0
98 76 35 0
99 77 1 0
100 77 34 0
101 78 1 0
102 78 10 0
103 78 33 0
104 79 1 0
105 79 8 0
106 80 3 1
107 80 14 1
108 81 1 0
109 81 11 0
110 82 1 0
111 82 15 1
112 83 9 0
113 84 9 0
114 85 3 0
115 85 12 1
116 88 3 0
117 88 7 0
118 89 3 0
119 89 7 0
120 90 3 0
121 92 3 0
122 92 3 1
123 92 12 0
124 92 12 1
125 93 1 0
126 93 35 0
127 94 14 0
128 96 9 0
129 98 9 0
130 99 5 0
131 100 1 0
132 100 2 0
133 102 1 0
134 102 14 0
135 103 13 1
136 104 1 0
137 105 1 0
138 105 2 0
139 105 10 0
140 106 1 0
141 107 36 0
142 107 8 0
143 108 3 0
144 108 10 0
145 109 27 1
146 110 3 1
147 110 3 0
148 110 10 0
149 110 24 1
150 110 15 1
151 110 17 1
152 112 14 1
153 114 28 0
154 114 27 0
155 114 8 0
156 115 5 0
157 115 5 1
158 115 10 0
159 116 37 0
160 117 14 1
161 118 1 0
162 118 2 0
163 119 15 0
164 119 34 0
165 120 1 0
166 120 2 0
167 122 1 0
168 122 2 0
169 123 1 0
170 123 2 0
171 123 12 0
172 124 1 0
173 124 2 0
174 125 14 1
175 126 1 0
176 126 30 0
177 127 1 0
178 127 2 0
179 129 1 0
180 129 4 0
181 130 1 0
182 130 13 1
183 131 3 0
184 133 12 1
185 136 1 0
186 136 2 0
187 137 37 0
188 138 37 0
189 139 1 0
190 139 17 1
191 140 1 0
192 140 15 1
193 141 1 0
194 141 15 1
195 141 17 1
196 141 19 1
197 141 21 1
198 141 23 1
199 143 3 1
200 143 15 1
201 145 3 0
202 146 1 0
203 146 17 1
204 146 11 0
205 147 1 0
206 147 35 0
207 148 1 0
208 149 1 0
209 149 7 0
210 149 10 0
211 150 1 0
212 151 1 0
213 151 35 0
214 152 1 0
215 152 11 0
216 153 1 0
217 153 31 0
218 155 1 0
219 155 10 0
220 155 7 0
221 156 1 0
222 156 11 0
223 157 17 1
224 159 1 0
225 159 35 0
226 160 1 0
227 160 10 0
228 161 17 1
229 161 21 1
230 162 1 0
231 162 2 0
232 163 12 1
233 165 37 0
234 167 19 0
235 167 34 0
236 168 30 0
237 169 16 0
238 169 20 0
239 169 5 1
240 170 1 0
241 170 4 0
242 171 1 0
243 172 1 0
244 172 4 0
245 172 13 0
246 173 14 1
247 174 9 0
248 175 21 1
249 179 8 0
250 180 12 1
251 181 9 0
252 182 36 1
253 182 12 1
254 183 1 0
255 183 16 1
256 183 18 1
257 186 1 0
258 186 4 0
259 187 1 0
260 188 29 0
261 189 1 0
262 190 3 0
263 191 1 0
264 191 2 0
265 192 8 0
266 194 13 1
267 196 9 0
268 197 1 0
269 197 2 0
270 198 1 0
271 198 35 0
272 198 31 0
273 198 16 0
274 198 26 0
275 198 29 0
276 198 32 0
277 199 1 0
278 199 3 1
279 200 34 0
280 201 1 0
281 201 6 0
282 201 30 0
283 203 1 0
284 203 33 0
285 204 1 0
286 204 4 0
287 205 1 0
288 205 20 1
289 206 16 0
290 206 18 0
291 207 20 0
292 207 22 0
293 208 1 0
294 209 15 1
295 209 17 1
296 210 1 0
297 210 6 0
298 210 33 0
299 212 19 1
300 212 21 1
301 213 15 1
302 213 23 1
303 215 12 1
304 217 28 0
305 217 8 0
306 218 1 0
307 218 4 0
308 218 13 0
309 219 1 0
310 219 24 1
311 220 1 0
312 220 2 0
313 221 5 1
314 221 12 1
315 221 13 1
316 222 1 0
317 222 4 0
318 223 1 0
319 223 2 0
320 224 1 0
321 225 1 0
322 225 4 0
323 226 23 1
324 227 15 1
325 227 17 1
326 227 19 1
327 227 21 1
328 227 23 1
329 228 3 0
330 229 1 0
331 230 1 0
332 230 18 1
333 230 22 1
334 231 1 0
335 231 2 0
336 232 1 0
337 232 2 0
338 234 1 0
339 234 2 0
340 235 13 1
341 236 1 0
342 236 2 0
343 238 1 0
344 238 2 0
345 239 15 1
346 239 16 1
347 239 17 1
348 239 18 1
349 242 9 0
350 243 9 0
351 246 1 0
352 246 2 0
353 247 1 0
354 249 1 0
355 252 12 1
356 254 1 0
357 254 3 1
358 254 30 0
359 255 1 0
360 255 3 1
361 255 7 0
362 256 1 0
363 256 11 0
364 257 1 0
365 257 11 0
366 258 1 0
367 259 28 0
368 261 1 0
369 261 32 0
370 262 1 0
371 262 10 0
372 262 36 0
373 262 4 0
374 263 1 0
375 263 3 1
376 263 31 0
377 264 1 0
378 264 11 0
379 266 20 0
380 268 1 0
381 268 34 0
382 269 1 0
383 270 1 0
384 270 3 1
385 271 3 1
386 271 12 1
387 271 13 1
388 272 1 0
389 272 22 0
390 273 1 0
391 273 11 0
392 274 1 0
393 274 30 0
394 274 35 0
395 275 1 0
396 275 32 0
397 275 35 0
398 276 1 0
399 276 31 0
400 276 35 0
401 277 1 0
402 277 19 1

View file

@ -179,6 +179,18 @@ class Machine(TableBase):
version_group_id = Column(Integer, ForeignKey('version_groups.id'), primary_key=True, nullable=False, autoincrement=False) version_group_id = Column(Integer, ForeignKey('version_groups.id'), primary_key=True, nullable=False, autoincrement=False)
move_id = Column(Integer, ForeignKey('moves.id'), nullable=False) move_id = Column(Integer, ForeignKey('moves.id'), nullable=False)
class MoveEffectCategory(TableBase):
__tablename__ = 'move_effect_categories'
id = Column(Integer, primary_key=True, nullable=False)
name = Column(Unicode(64), nullable=False)
can_affect_user = Column(Boolean, nullable=False)
class MoveEffectCategoryMap(TableBase):
__tablename__ = 'move_effect_category_map'
move_effect_id = Column(Integer, ForeignKey('move_effects.id'), primary_key=True, nullable=False)
move_effect_category_id = Column(Integer, ForeignKey('move_effect_categories.id'), primary_key=True, nullable=False)
affects_user = Column(Boolean, primary_key=True, nullable=False)
class MoveDamageClass(TableBase): class MoveDamageClass(TableBase):
__tablename__ = 'move_damage_classes' __tablename__ = 'move_damage_classes'
id = Column(Integer, primary_key=True, nullable=False) id = Column(Integer, primary_key=True, nullable=False)
@ -474,6 +486,10 @@ Move.effect = rst.MoveEffectProperty('effect')
Move.priority = association_proxy('move_effect', 'priority') Move.priority = association_proxy('move_effect', 'priority')
Move.short_effect = rst.MoveEffectProperty('short_effect') Move.short_effect = rst.MoveEffectProperty('short_effect')
MoveEffect.category_map = relation(MoveEffectCategoryMap)
MoveEffect.categories = association_proxy('category_map', 'category')
MoveEffectCategoryMap.category = relation(MoveEffectCategory)
MoveFlag.flag = relation(MoveFlagType) MoveFlag.flag = relation(MoveFlagType)
MoveFlavorText.generation = relation(Generation) MoveFlavorText.generation = relation(Generation)