Add Stat.is_battle_only.

This commit is contained in:
Eevee 2011-03-29 21:26:57 -07:00
parent db466bbebf
commit 8b81053a90
2 changed files with 11 additions and 9 deletions

View file

@ -1,9 +1,9 @@
id,damage_class_id,identifier
1,,hp
2,2,attack
3,2,defense
4,3,special-attack
5,3,special-defense
6,,speed
7,,accuracy
8,,evasion
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

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

View file

@ -1533,6 +1533,8 @@ class Stat(TableBase):
info=dict(description=u"For offensive and defensive stats, the damage this stat relates to; otherwise None (the NULL value)"))
identifier = Column(Unicode(16), nullable=False,
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"))
create_translation_table('stat_names', Stat, 'names',
relation_lazy='joined',