mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add B/W encounter methods and conditions
Spots: it might seem like they should be conditions, but in practice they behave more like methods. Specifically, conditions typically make only minor changes to an encounter list. Spots change everything. So spots are added as methods, with each type of spot as a separate method. Not exactly ideal, but this causes the least fuss. Seasons work fine as conditions. Well, as well as time-of-day.
This commit is contained in:
parent
c5fee20ef1
commit
ca5b7a9cbf
7 changed files with 32 additions and 8 deletions
pokedex/db
|
@ -779,6 +779,8 @@ class EncounterMethod(TableBase):
|
|||
info=dict(description="A unique ID for the method"))
|
||||
identifier = Column(Unicode(16), nullable=False, unique=True,
|
||||
info=dict(description="An identifier", format='identifier'))
|
||||
order = Column(Integer, unique=True, nullable=False,
|
||||
info=dict(description="A good column for sorting on"))
|
||||
|
||||
create_translation_table('encounter_method_prose', EncounterMethod, 'prose',
|
||||
name = Column(Unicode(64), nullable=False, index=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue