Add game indices for the main six stats.

This commit is contained in:
Lynn "Zhorken" Vaughan 2012-03-03 00:49:42 -05:00
parent eee9806184
commit 12b87852c6
2 changed files with 11 additions and 9 deletions

View file

@ -1,9 +1,9 @@
id,damage_class_id,identifier,is_battle_only
1,,hp,0
2,2,attack,0
3,2,defense,0
4,3,special-attack,0
5,3,special-defense,0
6,,speed,0
7,,accuracy,1
8,,evasion,1
id,damage_class_id,identifier,is_battle_only,game_index
1,,hp,0,1
2,2,attack,0,2
3,2,defense,0,3
4,3,special-attack,0,5
5,3,special-defense,0,6
6,,speed,0,4
7,,accuracy,1,
8,,evasion,1,

1 id damage_class_id identifier is_battle_only game_index
2 1 hp 0 1
3 2 2 attack 0 2
4 3 2 defense 0 3
5 4 3 special-attack 0 5
6 5 3 special-defense 0 6
7 6 speed 0 4
8 7 accuracy 1
9 8 evasion 1

View file

@ -1494,6 +1494,8 @@ class Stat(TableBase):
info=dict(description=u"An identifier", format='identifier'))
is_battle_only = Column(Boolean, nullable=False,
info=dict(description=u"Whether this stat only exists within a battle"))
game_index = Column(Integer, nullable=True,
info=dict(description=u"The stat order the games use internally for the persistent stats. NULL for battle-only stats."))
create_translation_table('stat_names', Stat, 'names',
relation_lazy='joined',