Add per-condition encounter rates to seed data (#26)
Co-authored-by: Julian Tabel <juliantabel.jt@gmail.com> Co-committed-by: Julian Tabel <juliantabel.jt@gmail.com>
This commit was merged in pull request #26.
This commit is contained in:
@@ -12,7 +12,8 @@ class RouteEncounter(Base):
|
||||
"pokemon_id",
|
||||
"encounter_method",
|
||||
"game_id",
|
||||
name="uq_route_pokemon_method_game",
|
||||
"condition",
|
||||
name="uq_route_pokemon_method_game_condition",
|
||||
),
|
||||
)
|
||||
|
||||
@@ -22,6 +23,7 @@ class RouteEncounter(Base):
|
||||
game_id: Mapped[int] = mapped_column(ForeignKey("games.id"), index=True)
|
||||
encounter_method: Mapped[str] = mapped_column(String(30))
|
||||
encounter_rate: Mapped[int] = mapped_column(SmallInteger)
|
||||
condition: Mapped[str] = mapped_column(String(30), default="", server_default="")
|
||||
min_level: Mapped[int] = mapped_column(SmallInteger)
|
||||
max_level: Mapped[int] = mapped_column(SmallInteger)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user