mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Set rarity for gift encounter slots
This commit is contained in:
parent
6fd43b097c
commit
ada0e9c545
2 changed files with 27 additions and 26 deletions
scripts
|
@ -275,8 +275,9 @@ def record_method_and_gifts(gift_method, gift_data):
|
|||
encounter_method_id = gift_method.id,
|
||||
# No priority over or under other events/conditions
|
||||
slot = None,
|
||||
# Rarity is meaningless for gifts
|
||||
rarity = None,
|
||||
# Rarity is meaningless for gifts, but say that it's
|
||||
# 100% to help out code that expects rarity to be defined.
|
||||
rarity = 100,
|
||||
)
|
||||
session.add(encounter_slot)
|
||||
session.commit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue