1
0
Fork 0
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:
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

@ -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()