Added item HG/SS flavor text and internal ids. #168?

This commit is contained in:
Eevee 2010-05-02 01:33:44 -07:00
parent 2040ed2b37
commit 853a6eb921
4 changed files with 2512 additions and 516 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,515 @@
item_id,generation_id,internal_id
1,4,1
2,4,2
3,4,3
4,4,4
5,4,5
6,4,6
7,4,7
8,4,8
9,4,9
10,4,10
11,4,11
12,4,12
13,4,13
14,4,14
15,4,15
16,4,16
17,4,17
18,4,18
19,4,19
20,4,20
21,4,21
22,4,22
23,4,23
24,4,24
25,4,25
26,4,26
27,4,27
28,4,28
29,4,29
30,4,30
31,4,31
32,4,32
33,4,33
34,4,34
35,4,35
36,4,36
37,4,37
38,4,38
39,4,39
40,4,40
41,4,41
42,4,42
43,4,43
44,4,44
45,4,45
46,4,46
47,4,47
48,4,48
49,4,49
50,4,50
51,4,51
52,4,52
53,4,53
54,4,54
55,4,55
56,4,56
57,4,57
58,4,58
59,4,59
60,4,60
61,4,61
62,4,62
63,4,63
64,4,64
65,4,65
66,4,66
67,4,67
68,4,68
69,4,69
70,4,70
71,4,71
72,4,72
73,4,73
74,4,74
75,4,75
76,4,76
77,4,77
78,4,78
79,4,79
80,4,80
81,4,81
82,4,82
83,4,83
84,4,84
85,4,85
86,4,86
87,4,87
88,4,88
89,4,89
90,4,90
91,4,91
92,4,92
93,4,93
94,4,94
95,4,95
96,4,96
97,4,97
98,4,98
99,4,99
100,4,100
101,4,101
102,4,102
103,4,103
104,4,104
105,4,105
106,4,106
107,4,107
108,4,108
109,4,109
110,4,110
111,4,111
112,4,135
113,4,136
114,4,137
115,4,138
116,4,139
117,4,140
118,4,141
119,4,142
120,4,143
121,4,144
122,4,145
123,4,146
124,4,147
125,4,148
126,4,149
127,4,150
128,4,151
129,4,152
130,4,153
131,4,154
132,4,155
133,4,156
134,4,157
135,4,158
136,4,159
137,4,160
138,4,161
139,4,162
140,4,163
141,4,164
142,4,165
143,4,166
144,4,167
145,4,168
146,4,169
147,4,170
148,4,171
149,4,172
150,4,173
151,4,174
152,4,175
153,4,176
154,4,177
155,4,178
156,4,179
157,4,180
158,4,181
159,4,182
160,4,183
161,4,184
162,4,185
163,4,186
164,4,187
165,4,188
166,4,189
167,4,190
168,4,191
169,4,192
170,4,193
171,4,194
172,4,195
173,4,196
174,4,197
175,4,198
176,4,199
177,4,200
178,4,201
179,4,202
180,4,203
181,4,204
182,4,205
183,4,206
184,4,207
185,4,208
186,4,209
187,4,210
188,4,211
189,4,212
190,4,213
191,4,214
192,4,215
193,4,216
194,4,217
195,4,218
196,4,219
197,4,220
198,4,221
199,4,222
200,4,223
201,4,224
202,4,225
203,4,226
204,4,227
205,4,228
206,4,229
207,4,230
208,4,231
209,4,232
210,4,233
211,4,234
212,4,235
213,4,236
214,4,237
215,4,238
216,4,239
217,4,240
218,4,241
219,4,242
220,4,243
221,4,244
222,4,245
223,4,246
224,4,247
225,4,248
226,4,249
227,4,250
228,4,251
229,4,252
230,4,253
231,4,254
232,4,255
233,4,256
234,4,257
235,4,258
236,4,259
237,4,260
238,4,261
239,4,262
240,4,263
241,4,264
242,4,265
243,4,266
244,4,267
245,4,268
246,4,269
247,4,270
248,4,271
249,4,272
250,4,273
251,4,274
252,4,275
253,4,276
254,4,277
255,4,278
256,4,279
257,4,280
258,4,281
259,4,282
260,4,283
261,4,284
262,4,285
263,4,286
264,4,287
265,4,288
266,4,289
267,4,290
268,4,291
269,4,292
270,4,293
271,4,294
272,4,295
273,4,296
274,4,297
275,4,298
276,4,299
277,4,300
278,4,301
279,4,302
280,4,303
281,4,304
282,4,305
283,4,306
284,4,307
285,4,308
286,4,309
287,4,310
288,4,311
289,4,312
290,4,313
291,4,314
292,4,315
293,4,316
294,4,317
295,4,318
296,4,319
297,4,320
298,4,321
299,4,322
300,4,323
301,4,324
302,4,325
303,4,326
304,4,327
305,4,328
306,4,329
307,4,330
308,4,331
309,4,332
310,4,333
311,4,334
312,4,335
313,4,336
314,4,337
315,4,338
316,4,339
317,4,340
318,4,341
319,4,342
320,4,343
321,4,344
322,4,345
323,4,346
324,4,347
325,4,348
326,4,349
327,4,350
328,4,351
329,4,352
330,4,353
331,4,354
332,4,355
333,4,356
334,4,357
335,4,358
336,4,359
337,4,360
338,4,361
339,4,362
340,4,363
341,4,364
342,4,365
343,4,366
344,4,367
345,4,368
346,4,369
347,4,370
348,4,371
349,4,372
350,4,373
351,4,374
352,4,375
353,4,376
354,4,377
355,4,378
356,4,379
357,4,380
358,4,381
359,4,382
360,4,383
361,4,384
362,4,385
363,4,386
364,4,387
365,4,388
366,4,389
367,4,390
368,4,391
369,4,392
370,4,393
371,4,394
372,4,395
373,4,396
374,4,397
375,4,398
376,4,399
377,4,400
378,4,401
379,4,402
380,4,403
381,4,404
382,4,405
383,4,406
384,4,407
385,4,408
386,4,409
387,4,410
388,4,411
389,4,412
390,4,413
391,4,414
392,4,415
393,4,416
394,4,417
395,4,418
396,4,419
397,4,420
398,4,421
399,4,422
400,4,423
401,4,424
402,4,425
403,4,426
404,4,427
405,4,428
406,4,429
407,4,430
408,4,431
409,4,432
410,4,433
411,4,434
412,4,435
413,4,436
414,4,437
415,4,438
416,4,439
417,4,440
418,4,441
419,4,442
420,4,443
421,4,444
422,4,445
423,4,446
424,4,447
425,4,448
426,4,449
427,4,450
428,4,451
429,4,452
430,4,453
431,4,454
432,4,455
433,4,456
434,4,457
435,4,458
436,4,459
437,4,460
438,4,461
439,4,462
440,4,463
441,4,464
442,4,112
443,4,465
444,4,466
445,4,467
446,4,468
447,4,470
448,4,477
449,4,494
450,4,493
451,4,498
452,4,495
453,4,492
454,4,497
455,4,496
456,4,500
457,4,499
458,4,485
459,4,487
460,4,486
461,4,488
462,4,489
463,4,490
464,4,491
465,4,471
466,4,504
467,4,534
468,4,535
469,4,532
470,4,536
471,4,469
472,4,472
473,4,473
474,4,474
475,4,475
476,4,476
477,4,478
478,4,479
479,4,480
480,4,481
481,4,482
482,4,483
483,4,484
484,4,502
485,4,503
486,4,505
487,4,506
488,4,507
489,4,508
490,4,509
491,4,510
492,4,511
493,4,512
494,4,513
495,4,514
496,4,515
497,4,516
498,4,517
499,4,518
500,4,519
501,4,520
502,4,521
503,4,522
504,4,523
505,4,524
506,4,525
507,4,526
508,4,527
509,4,528
510,4,529
511,4,530
512,4,531
513,4,533
514,4,501
1 item_id generation_id internal_id
2 1 4 1
3 2 4 2
4 3 4 3
5 4 4 4
6 5 4 5
7 6 4 6
8 7 4 7
9 8 4 8
10 9 4 9
11 10 4 10
12 11 4 11
13 12 4 12
14 13 4 13
15 14 4 14
16 15 4 15
17 16 4 16
18 17 4 17
19 18 4 18
20 19 4 19
21 20 4 20
22 21 4 21
23 22 4 22
24 23 4 23
25 24 4 24
26 25 4 25
27 26 4 26
28 27 4 27
29 28 4 28
30 29 4 29
31 30 4 30
32 31 4 31
33 32 4 32
34 33 4 33
35 34 4 34
36 35 4 35
37 36 4 36
38 37 4 37
39 38 4 38
40 39 4 39
41 40 4 40
42 41 4 41
43 42 4 42
44 43 4 43
45 44 4 44
46 45 4 45
47 46 4 46
48 47 4 47
49 48 4 48
50 49 4 49
51 50 4 50
52 51 4 51
53 52 4 52
54 53 4 53
55 54 4 54
56 55 4 55
57 56 4 56
58 57 4 57
59 58 4 58
60 59 4 59
61 60 4 60
62 61 4 61
63 62 4 62
64 63 4 63
65 64 4 64
66 65 4 65
67 66 4 66
68 67 4 67
69 68 4 68
70 69 4 69
71 70 4 70
72 71 4 71
73 72 4 72
74 73 4 73
75 74 4 74
76 75 4 75
77 76 4 76
78 77 4 77
79 78 4 78
80 79 4 79
81 80 4 80
82 81 4 81
83 82 4 82
84 83 4 83
85 84 4 84
86 85 4 85
87 86 4 86
88 87 4 87
89 88 4 88
90 89 4 89
91 90 4 90
92 91 4 91
93 92 4 92
94 93 4 93
95 94 4 94
96 95 4 95
97 96 4 96
98 97 4 97
99 98 4 98
100 99 4 99
101 100 4 100
102 101 4 101
103 102 4 102
104 103 4 103
105 104 4 104
106 105 4 105
107 106 4 106
108 107 4 107
109 108 4 108
110 109 4 109
111 110 4 110
112 111 4 111
113 112 4 135
114 113 4 136
115 114 4 137
116 115 4 138
117 116 4 139
118 117 4 140
119 118 4 141
120 119 4 142
121 120 4 143
122 121 4 144
123 122 4 145
124 123 4 146
125 124 4 147
126 125 4 148
127 126 4 149
128 127 4 150
129 128 4 151
130 129 4 152
131 130 4 153
132 131 4 154
133 132 4 155
134 133 4 156
135 134 4 157
136 135 4 158
137 136 4 159
138 137 4 160
139 138 4 161
140 139 4 162
141 140 4 163
142 141 4 164
143 142 4 165
144 143 4 166
145 144 4 167
146 145 4 168
147 146 4 169
148 147 4 170
149 148 4 171
150 149 4 172
151 150 4 173
152 151 4 174
153 152 4 175
154 153 4 176
155 154 4 177
156 155 4 178
157 156 4 179
158 157 4 180
159 158 4 181
160 159 4 182
161 160 4 183
162 161 4 184
163 162 4 185
164 163 4 186
165 164 4 187
166 165 4 188
167 166 4 189
168 167 4 190
169 168 4 191
170 169 4 192
171 170 4 193
172 171 4 194
173 172 4 195
174 173 4 196
175 174 4 197
176 175 4 198
177 176 4 199
178 177 4 200
179 178 4 201
180 179 4 202
181 180 4 203
182 181 4 204
183 182 4 205
184 183 4 206
185 184 4 207
186 185 4 208
187 186 4 209
188 187 4 210
189 188 4 211
190 189 4 212
191 190 4 213
192 191 4 214
193 192 4 215
194 193 4 216
195 194 4 217
196 195 4 218
197 196 4 219
198 197 4 220
199 198 4 221
200 199 4 222
201 200 4 223
202 201 4 224
203 202 4 225
204 203 4 226
205 204 4 227
206 205 4 228
207 206 4 229
208 207 4 230
209 208 4 231
210 209 4 232
211 210 4 233
212 211 4 234
213 212 4 235
214 213 4 236
215 214 4 237
216 215 4 238
217 216 4 239
218 217 4 240
219 218 4 241
220 219 4 242
221 220 4 243
222 221 4 244
223 222 4 245
224 223 4 246
225 224 4 247
226 225 4 248
227 226 4 249
228 227 4 250
229 228 4 251
230 229 4 252
231 230 4 253
232 231 4 254
233 232 4 255
234 233 4 256
235 234 4 257
236 235 4 258
237 236 4 259
238 237 4 260
239 238 4 261
240 239 4 262
241 240 4 263
242 241 4 264
243 242 4 265
244 243 4 266
245 244 4 267
246 245 4 268
247 246 4 269
248 247 4 270
249 248 4 271
250 249 4 272
251 250 4 273
252 251 4 274
253 252 4 275
254 253 4 276
255 254 4 277
256 255 4 278
257 256 4 279
258 257 4 280
259 258 4 281
260 259 4 282
261 260 4 283
262 261 4 284
263 262 4 285
264 263 4 286
265 264 4 287
266 265 4 288
267 266 4 289
268 267 4 290
269 268 4 291
270 269 4 292
271 270 4 293
272 271 4 294
273 272 4 295
274 273 4 296
275 274 4 297
276 275 4 298
277 276 4 299
278 277 4 300
279 278 4 301
280 279 4 302
281 280 4 303
282 281 4 304
283 282 4 305
284 283 4 306
285 284 4 307
286 285 4 308
287 286 4 309
288 287 4 310
289 288 4 311
290 289 4 312
291 290 4 313
292 291 4 314
293 292 4 315
294 293 4 316
295 294 4 317
296 295 4 318
297 296 4 319
298 297 4 320
299 298 4 321
300 299 4 322
301 300 4 323
302 301 4 324
303 302 4 325
304 303 4 326
305 304 4 327
306 305 4 328
307 306 4 329
308 307 4 330
309 308 4 331
310 309 4 332
311 310 4 333
312 311 4 334
313 312 4 335
314 313 4 336
315 314 4 337
316 315 4 338
317 316 4 339
318 317 4 340
319 318 4 341
320 319 4 342
321 320 4 343
322 321 4 344
323 322 4 345
324 323 4 346
325 324 4 347
326 325 4 348
327 326 4 349
328 327 4 350
329 328 4 351
330 329 4 352
331 330 4 353
332 331 4 354
333 332 4 355
334 333 4 356
335 334 4 357
336 335 4 358
337 336 4 359
338 337 4 360
339 338 4 361
340 339 4 362
341 340 4 363
342 341 4 364
343 342 4 365
344 343 4 366
345 344 4 367
346 345 4 368
347 346 4 369
348 347 4 370
349 348 4 371
350 349 4 372
351 350 4 373
352 351 4 374
353 352 4 375
354 353 4 376
355 354 4 377
356 355 4 378
357 356 4 379
358 357 4 380
359 358 4 381
360 359 4 382
361 360 4 383
362 361 4 384
363 362 4 385
364 363 4 386
365 364 4 387
366 365 4 388
367 366 4 389
368 367 4 390
369 368 4 391
370 369 4 392
371 370 4 393
372 371 4 394
373 372 4 395
374 373 4 396
375 374 4 397
376 375 4 398
377 376 4 399
378 377 4 400
379 378 4 401
380 379 4 402
381 380 4 403
382 381 4 404
383 382 4 405
384 383 4 406
385 384 4 407
386 385 4 408
387 386 4 409
388 387 4 410
389 388 4 411
390 389 4 412
391 390 4 413
392 391 4 414
393 392 4 415
394 393 4 416
395 394 4 417
396 395 4 418
397 396 4 419
398 397 4 420
399 398 4 421
400 399 4 422
401 400 4 423
402 401 4 424
403 402 4 425
404 403 4 426
405 404 4 427
406 405 4 428
407 406 4 429
408 407 4 430
409 408 4 431
410 409 4 432
411 410 4 433
412 411 4 434
413 412 4 435
414 413 4 436
415 414 4 437
416 415 4 438
417 416 4 439
418 417 4 440
419 418 4 441
420 419 4 442
421 420 4 443
422 421 4 444
423 422 4 445
424 423 4 446
425 424 4 447
426 425 4 448
427 426 4 449
428 427 4 450
429 428 4 451
430 429 4 452
431 430 4 453
432 431 4 454
433 432 4 455
434 433 4 456
435 434 4 457
436 435 4 458
437 436 4 459
438 437 4 460
439 438 4 461
440 439 4 462
441 440 4 463
442 441 4 464
443 442 4 112
444 443 4 465
445 444 4 466
446 445 4 467
447 446 4 468
448 447 4 470
449 448 4 477
450 449 4 494
451 450 4 493
452 451 4 498
453 452 4 495
454 453 4 492
455 454 4 497
456 455 4 496
457 456 4 500
458 457 4 499
459 458 4 485
460 459 4 487
461 460 4 486
462 461 4 488
463 462 4 489
464 463 4 490
465 464 4 491
466 465 4 471
467 466 4 504
468 467 4 534
469 468 4 535
470 469 4 532
471 470 4 536
472 471 4 469
473 472 4 472
474 473 4 473
475 474 4 474
476 475 4 475
477 476 4 476
478 477 4 478
479 478 4 479
480 479 4 480
481 480 4 481
482 481 4 482
483 482 4 483
484 483 4 484
485 484 4 502
486 485 4 503
487 486 4 505
488 487 4 506
489 488 4 507
490 489 4 508
491 490 4 509
492 491 4 510
493 492 4 511
494 493 4 512
495 494 4 513
496 495 4 514
497 496 4 515
498 497 4 516
499 498 4 517
500 499 4 518
501 500 4 519
502 501 4 520
503 502 4 521
504 503 4 522
505 504 4 523
506 505 4 524
507 506 4 525
508 507 4 526
509 508 4 527
510 509 4 528
511 510 4 529
512 511 4 530
513 512 4 531
514 513 4 533
515 514 4 501

File diff suppressed because it is too large Load diff

View file

@ -201,7 +201,6 @@ class Item(TableBase):
cost = Column(Integer, nullable=False) cost = Column(Integer, nullable=False)
fling_power = Column(Integer, nullable=True) fling_power = Column(Integer, nullable=True)
fling_effect_id = Column(Integer, ForeignKey('item_fling_effects.id'), nullable=True) fling_effect_id = Column(Integer, ForeignKey('item_fling_effects.id'), nullable=True)
flavor_text = Column(Unicode(255), nullable=False)
effect = Column(Unicode(5120), nullable=False) effect = Column(Unicode(5120), nullable=False)
is_underground = Column(Boolean, nullable=False) is_underground = Column(Boolean, nullable=False)
can_hold = Column(Boolean, nullable=False) can_hold = Column(Boolean, nullable=False)
@ -215,11 +214,23 @@ class ItemCategory(TableBase):
pocket_id = Column(Integer, ForeignKey('item_pockets.id'), nullable=False) pocket_id = Column(Integer, ForeignKey('item_pockets.id'), nullable=False)
name = Column(Unicode(16), nullable=False) name = Column(Unicode(16), nullable=False)
class ItemFlavorText(TableBase):
__tablename__ = 'item_flavor_text'
item_id = Column(Integer, ForeignKey('items.id'), primary_key=True, autoincrement=False, nullable=False)
version_group_id = Column(Integer, ForeignKey('version_groups.id'), primary_key=True, autoincrement=False, nullable=False)
flavor_text = Column(Unicode(255), nullable=False)
class ItemFlingEffect(TableBase): class ItemFlingEffect(TableBase):
__tablename__ = 'item_fling_effects' __tablename__ = 'item_fling_effects'
id = Column(Integer, primary_key=True, nullable=False) id = Column(Integer, primary_key=True, nullable=False)
effect = Column(Unicode(255), nullable=False) effect = Column(Unicode(255), nullable=False)
class ItemInternalID(TableBase):
__tablename__ = 'item_internal_ids'
item_id = Column(Integer, ForeignKey('items.id'), primary_key=True, autoincrement=False, nullable=False)
generation_id = Column(Integer, ForeignKey('generations.id'), primary_key=True, autoincrement=False, nullable=False)
internal_id = Column(Integer, nullable=False)
class ItemPocket(TableBase): class ItemPocket(TableBase):
__tablename__ = 'item_pockets' __tablename__ = 'item_pockets'
id = Column(Integer, primary_key=True, nullable=False) id = Column(Integer, primary_key=True, nullable=False)
@ -647,6 +658,7 @@ Generation.versions = relation(Version, secondary=VersionGroup.__table__)
Generation.main_region = relation(Region) Generation.main_region = relation(Region)
Item.berry = relation(Berry, uselist=False, backref='item') Item.berry = relation(Berry, uselist=False, backref='item')
Item.flavor_text = relation(ItemFlavorText, order_by=ItemFlavorText.version_group_id.asc(), backref='item')
Item.fling_effect = relation(ItemFlingEffect, backref='items') Item.fling_effect = relation(ItemFlingEffect, backref='items')
Item.category = relation(ItemCategory) Item.category = relation(ItemCategory)
Item.pocket = association_proxy('category', 'pocket') Item.pocket = association_proxy('category', 'pocket')
@ -654,6 +666,8 @@ Item.pocket = association_proxy('category', 'pocket')
ItemCategory.items = relation(Item, order_by=Item.name) ItemCategory.items = relation(Item, order_by=Item.name)
ItemCategory.pocket = relation(ItemPocket) ItemCategory.pocket = relation(ItemPocket)
ItemFlavorText.version_group = relation(VersionGroup)
ItemPocket.categories = relation(ItemCategory, order_by=ItemCategory.name) ItemPocket.categories = relation(ItemCategory, order_by=ItemCategory.name)
Location.region = relation(Region, backref='locations') Location.region = relation(Region, backref='locations')
@ -737,7 +751,7 @@ Pokemon.evolution_method = relation(EvolutionMethod)
Pokemon.evolution_children = relation(Pokemon, primaryjoin=Pokemon.id==Pokemon.evolution_parent_pokemon_id, Pokemon.evolution_children = relation(Pokemon, primaryjoin=Pokemon.id==Pokemon.evolution_parent_pokemon_id,
backref=backref('evolution_parent', backref=backref('evolution_parent',
remote_side=[Pokemon.id])) remote_side=[Pokemon.id]))
Pokemon.flavor_text = relation(PokemonFlavorText, order_by=PokemonFlavorText.pokemon_id, backref='pokemon') Pokemon.flavor_text = relation(PokemonFlavorText, order_by=PokemonFlavorText.version_id.asc(), backref='pokemon')
Pokemon.foreign_names = relation(PokemonName, backref='pokemon') Pokemon.foreign_names = relation(PokemonName, backref='pokemon')
Pokemon.pokemon_habitat = relation(PokemonHabitat, backref='pokemon') Pokemon.pokemon_habitat = relation(PokemonHabitat, backref='pokemon')
Pokemon.habitat = association_proxy('pokemon_habitat', 'name') Pokemon.habitat = association_proxy('pokemon_habitat', 'name')