projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8bda6b1
)
Add Stat.is_battle_only.
author
Eevee
<git@veekun.com>
Wed, 30 Mar 2011 04:26:57 +0000
(21:26 -0700)
committer
Eevee
<git@veekun.com>
Wed, 30 Mar 2011 04:26:57 +0000
(21:26 -0700)
pokedex/data/csv/stats.csv
patch
|
blob
|
history
pokedex/db/tables.py
patch
|
blob
|
history
diff --git
a/pokedex/data/csv/stats.csv
b/pokedex/data/csv/stats.csv
index
a0c4594
..
007a1b4
100644
(file)
--- a/
pokedex/data/csv/stats.csv
+++ b/
pokedex/data/csv/stats.csv
@@
-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
diff --git
a/pokedex/db/tables.py
b/pokedex/db/tables.py
index
4865363
..
faa5a88
100644
(file)
--- a/
pokedex/db/tables.py
+++ b/
pokedex/db/tables.py
@@
-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'))
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',
create_translation_table('stat_names', Stat, 'names',
relation_lazy='joined',