1
0
Fork 0
mirror of https://github.com/veekun/pokedex.git synced 2024-08-20 18:16:34 +00:00

Add generic warrior archetypes.

This commit is contained in:
Lynn "Zhorken" Vaughan 2012-07-29 17:58:30 -04:00
parent d3693319f1
commit 47410a9e9c
3 changed files with 250 additions and 202 deletions
pokedex/db

View file

@ -338,6 +338,8 @@ class ConquestWarrior(TableBase):
info=dict(description='A readable identifier for this warrior.', format='identifier'))
gender_id = Column(Integer, ForeignKey('genders.id'), nullable=False,
info=dict(description="The ID of the warrior's gender."))
archetype_id = Column(Integer, ForeignKey('conquest_warrior_archetypes.id'), nullable=True,
info=dict(description="The ID of this warrior's archetype. Null for unique warriors."))
create_translation_table('conquest_warrior_names', ConquestWarrior, 'names',
relation_lazy='joined',
@ -345,6 +347,21 @@ create_translation_table('conquest_warrior_names', ConquestWarrior, 'names',
info=dict(description='The name.', format='plaintext', official=True))
)
class ConquestWarriorArchetype(TableBase):
u"""An archetype that generic warriors in Pokémon Conquest can have. All
warriors of a particular archetype share sprites and dialogue.
Some of these are unused as warriors because they exist only as NPCs. They
should still be kept because we have their sprites and may eventually get
their dialogue.
"""
__tablename__ = 'conquest_warrior_archetypes'
__singlename__ = 'archetype'
id = Column(Integer, primary_key=True, autoincrement=True,
info=dict(description='An ID for this archetype.'))
identifier = Column(Unicode(15), nullable=False,
info=dict(description='A readable identifier describing this archetype.', format='identifier'))
class ConquestWarriorRank(TableBase):
u"""A warrior at a particular rank in Pokémon Conquest.