Rename the "none" damage class to "non-damaging".
authorLynn "Zhorken" Vaughan <zhorken@gmail.com>
Tue, 7 Dec 2010 17:43:58 +0000 (12:43 -0500)
committerLynn "Zhorken" Vaughan <zhorken@gmail.com>
Tue, 7 Dec 2010 17:43:58 +0000 (12:43 -0500)
Also decapitalize the classes' names, because they make sense that way
and they're not among the things the games always capitalize.

pokedex/data/csv/move_damage_classes.csv
pokedex/data/media/chrome/damage-classes/non-damaging.png [moved from pokedex/data/media/chrome/damage-classes/none.png with 100% similarity]
pokedex/db/tables.py

index 669693a..1baeeda 100644 (file)
@@ -1,4 +1,4 @@
 id,name,description
-1,None,No damage
-2,Physical,"Physical damage, controlled by Attack and Defense"
-3,Special,"Special damage, controlled by Special Attack and Special Defense"
+1,non-damaging,No damage
+2,physical,"Physical damage, controlled by Attack and Defense"
+3,special,"Special damage, controlled by Special Attack and Special Defense"
index 177309a..59755a7 100644 (file)
@@ -573,7 +573,7 @@ class MoveDamageClass(TableBase):
     __tablename__ = 'move_damage_classes'
     id = Column(Integer, primary_key=True, nullable=False,
         info=dict(description="A numeric ID"))
-    name = Column(Unicode(8), nullable=False,
+    name = Column(Unicode(16), nullable=False,
         info=dict(description="An English name of the class", format='plaintext'))
     description = Column(Unicode(64), nullable=False,
         info=dict(description="An English description of the class", format='plaintext'))