Add official color codes of each type and damage class

This commit is contained in:
Philippe Matray 2016-09-02 13:55:55 +02:00
parent 77ace08abd
commit 83f35180da
3 changed files with 29 additions and 25 deletions

View file

@ -1,4 +1,4 @@
id,identifier id,identifier,color_code
1,status 1,status,"#FF969296"
2,physical 2,physical,"#FFCE2918"
3,special 3,special,"#FF5A637B"

1 id identifier color_code
2 1 status #FF969296
3 2 physical #FFCE2918
4 3 special #FF5A637B

View file

@ -1,21 +1,21 @@
id,identifier,generation_id,damage_class_id id,identifier,generation_id,damage_class_id,color_code
1,normal,1,2 1,normal,1,2,"#FFA8A878"
2,fighting,1,2 2,fighting,1,2,"#FF903028"
3,flying,1,2 3,flying,1,2,"#FFA890F0"
4,poison,1,2 4,poison,1,2,"#FFA040A0"
5,ground,1,2 5,ground,1,2,"#FFE0C068"
6,rock,1,2 6,rock,1,2,"#FFB8A038"
7,bug,1,2 7,bug,1,2,"#FFA8B820"
8,ghost,1,2 8,ghost,1,2,"#FF705898"
9,steel,2,2 9,steel,2,2,"#FFB8B8D0"
10,fire,1,3 10,fire,1,3,"#FFF05030"
11,water,1,3 11,water,1,3,"#FF68A090"
12,grass,1,3 12,grass,1,3,"#FF78C850"
13,electric,1,3 13,electric,1,3,"#FFF8D030"
14,psychic,1,3 14,psychic,1,3,"#FFF85888"
15,ice,1,3 15,ice,1,3,"#FF98D8D8"
16,dragon,1,3 16,dragon,1,3,"#FF7038F8"
17,dark,2,3 17,dark,2,3,"#FF705848"
18,fairy,6, 18,fairy,6,,"#FFF8A0E0"
10001,unknown,2, 10001,unknown,2,,"#FF68A090"
10002,shadow,3, 10002,shadow,3,,"#FF403246"

1 id identifier generation_id damage_class_id color_code
2 1 normal 1 2 #FFA8A878
3 2 fighting 1 2 #FF903028
4 3 flying 1 2 #FFA890F0
5 4 poison 1 2 #FFA040A0
6 5 ground 1 2 #FFE0C068
7 6 rock 1 2 #FFB8A038
8 7 bug 1 2 #FFA8B820
9 8 ghost 1 2 #FF705898
10 9 steel 2 2 #FFB8B8D0
11 10 fire 1 3 #FFF05030
12 11 water 1 3 #FF68A090
13 12 grass 1 3 #FF78C850
14 13 electric 1 3 #FFF8D030
15 14 psychic 1 3 #FFF85888
16 15 ice 1 3 #FF98D8D8
17 16 dragon 1 3 #FF7038F8
18 17 dark 2 3 #FF705848
19 18 fairy 6 #FFF8A0E0
20 10001 unknown 2 #FF68A090
21 10002 shadow 3 #FF403246

View file

@ -1276,6 +1276,8 @@ class MoveDamageClass(TableBase):
identifier = Column(Unicode(79), nullable=False, identifier = Column(Unicode(79), nullable=False,
doc=u"An identifier", doc=u"An identifier",
info=dict(format='identifier')) info=dict(format='identifier'))
color_code = Column(Unicode(79), nullable=True,
doc=u"The ARGB color code of the DamageClass")
create_translation_table('move_damage_class_prose', MoveDamageClass, 'prose', create_translation_table('move_damage_class_prose', MoveDamageClass, 'prose',
relation_lazy='joined', relation_lazy='joined',
@ -2158,6 +2160,8 @@ class Type(TableBase):
doc=u"The ID of the generation this type first appeared in.") doc=u"The ID of the generation this type first appeared in.")
damage_class_id = Column(Integer, ForeignKey('move_damage_classes.id'), nullable=True, damage_class_id = Column(Integer, ForeignKey('move_damage_classes.id'), nullable=True,
doc=u"The ID of the damage class this type's moves had before Generation IV, null if not applicable (e.g. ???).") doc=u"The ID of the damage class this type's moves had before Generation IV, null if not applicable (e.g. ???).")
color_code = Column(Unicode(79), nullable=True,
doc=u"The ARGB color code of the type")
create_translation_table('type_names', Type, 'names', create_translation_table('type_names', Type, 'names',
relation_lazy='joined', relation_lazy='joined',