Set rarity for gift encounter slots

This commit is contained in:
Andrew Ekstedt 2018-10-27 14:44:55 -07:00
parent 6fd43b097c
commit ada0e9c545
2 changed files with 27 additions and 26 deletions

View file

@ -488,27 +488,27 @@ id,version_group_id,encounter_method_id,slot,rarity
487,15,4,0,60 487,15,4,0,60
488,15,4,1,35 488,15,4,1,35
489,15,4,2,5 489,15,4,2,5
490,1,18,, 490,1,18,,100
491,15,18,, 491,15,18,,100
492,3,18,, 492,3,18,,100
493,4,18,, 493,4,18,,100
494,5,18,, 494,5,18,,100
495,6,18,, 495,6,18,,100
496,7,18,, 496,7,18,,100
497,8,18,, 497,8,18,,100
498,9,18,, 498,9,18,,100
499,10,18,, 499,10,18,,100
500,11,18,, 500,11,18,,100
501,14,18,, 501,14,18,,100
502,16,18,, 502,16,18,,100
503,3,19,, 503,3,19,,100
504,4,19,, 504,4,19,,100
505,5,19,, 505,5,19,,100
506,6,19,, 506,6,19,,100
507,7,19,, 507,7,19,,100
508,8,19,, 508,8,19,,100
509,9,19,, 509,9,19,,100
510,10,19,, 510,10,19,,100
511,11,19,, 511,11,19,,100
512,14,19,, 512,14,19,,100
513,16,19,, 513,16,19,,100

1 id version_group_id encounter_method_id slot rarity
488 487 15 4 0 60
489 488 15 4 1 35
490 489 15 4 2 5
491 490 1 18 100
492 491 15 18 100
493 492 3 18 100
494 493 4 18 100
495 494 5 18 100
496 495 6 18 100
497 496 7 18 100
498 497 8 18 100
499 498 9 18 100
500 499 10 18 100
501 500 11 18 100
502 501 14 18 100
503 502 16 18 100
504 503 3 19 100
505 504 4 19 100
506 505 5 19 100
507 506 6 19 100
508 507 7 19 100
509 508 8 19 100
510 509 9 19 100
511 510 10 19 100
512 511 11 19 100
513 512 14 19 100
514 513 16 19 100

View file

@ -275,8 +275,9 @@ def record_method_and_gifts(gift_method, gift_data):
encounter_method_id = gift_method.id, encounter_method_id = gift_method.id,
# No priority over or under other events/conditions # No priority over or under other events/conditions
slot = None, slot = None,
# Rarity is meaningless for gifts # Rarity is meaningless for gifts, but say that it's
rarity = None, # 100% to help out code that expects rarity to be defined.
rarity = 100,
) )
session.add(encounter_slot) session.add(encounter_slot)
session.commit() session.commit()