mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Add Stat.is_battle_only.
This commit is contained in:
parent
db466bbebf
commit
8b81053a90
2 changed files with 11 additions and 9 deletions
|
@ -1,9 +1,9 @@
|
||||||
id,damage_class_id,identifier
|
id,damage_class_id,identifier,is_battle_only
|
||||||
1,,hp
|
1,,hp,0
|
||||||
2,2,attack
|
2,2,attack,0
|
||||||
3,2,defense
|
3,2,defense,0
|
||||||
4,3,special-attack
|
4,3,special-attack,0
|
||||||
5,3,special-defense
|
5,3,special-defense,0
|
||||||
6,,speed
|
6,,speed,0
|
||||||
7,,accuracy
|
7,,accuracy,1
|
||||||
8,,evasion
|
8,,evasion,1
|
||||||
|
|
|
|
@ -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)"))
|
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,
|
identifier = Column(Unicode(16), nullable=False,
|
||||||
info=dict(description=u"An identifier", format='identifier'))
|
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',
|
create_translation_table('stat_names', Stat, 'names',
|
||||||
relation_lazy='joined',
|
relation_lazy='joined',
|
||||||
|
|
Loading…
Reference in a new issue