Add game indices for natures.

I'm assuming (and I'm 99% sure I'm right) that the internal order for
natures has never changed.
This commit is contained in:
Lynn "Zhorken" Vaughan 2014-06-21 22:27:56 -04:00
parent 8cba4ac996
commit a71e4a2c13
2 changed files with 28 additions and 26 deletions

View file

@ -1,26 +1,26 @@
id,identifier,decreased_stat_id,increased_stat_id,hates_flavor_id,likes_flavor_id id,identifier,decreased_stat_id,increased_stat_id,hates_flavor_id,likes_flavor_id,game_index
1,hardy,2,2,1,1 1,hardy,2,2,1,1,1
2,bold,2,3,1,5 2,bold,2,3,1,5,6
3,modest,2,4,1,2 3,modest,2,4,1,2,16
4,calm,2,5,1,4 4,calm,2,5,1,4,21
5,timid,2,6,1,3 5,timid,2,6,1,3,11
6,lonely,3,2,5,1 6,lonely,3,2,5,1,2
7,docile,3,3,5,5 7,docile,3,3,5,5,7
8,mild,3,4,5,2 8,mild,3,4,5,2,17
9,gentle,3,5,5,4 9,gentle,3,5,5,4,22
10,hasty,3,6,5,3 10,hasty,3,6,5,3,12
11,adamant,4,2,2,1 11,adamant,4,2,2,1,4
12,impish,4,3,2,5 12,impish,4,3,2,5,9
13,bashful,4,4,2,2 13,bashful,4,4,2,2,19
14,careful,4,5,2,4 14,careful,4,5,2,4,24
15,rash,5,4,4,2 15,rash,5,4,4,2,20
16,jolly,4,6,2,3 16,jolly,4,6,2,3,14
17,naughty,5,2,4,1 17,naughty,5,2,4,1,5
18,lax,5,3,4,5 18,lax,5,3,4,5,10
19,quirky,5,5,4,4 19,quirky,5,5,4,4,25
20,naive,5,6,4,3 20,naive,5,6,4,3,15
21,brave,6,2,3,1 21,brave,6,2,3,1,3
22,relaxed,6,3,3,5 22,relaxed,6,3,3,5,8
23,quiet,6,4,3,2 23,quiet,6,4,3,2,18
24,sassy,6,5,3,4 24,sassy,6,5,3,4,23
25,serious,6,6,3,3 25,serious,6,6,3,3,13

1 id identifier decreased_stat_id increased_stat_id hates_flavor_id likes_flavor_id game_index
2 1 hardy 2 2 1 1 1
3 2 bold 2 3 1 5 6
4 3 modest 2 4 1 2 16
5 4 calm 2 5 1 4 21
6 5 timid 2 6 1 3 11
7 6 lonely 3 2 5 1 2
8 7 docile 3 3 5 5 7
9 8 mild 3 4 5 2 17
10 9 gentle 3 5 5 4 22
11 10 hasty 3 6 5 3 12
12 11 adamant 4 2 2 1 4
13 12 impish 4 3 2 5 9
14 13 bashful 4 4 2 2 19
15 14 careful 4 5 2 4 24
16 15 rash 5 4 4 2 20
17 16 jolly 4 6 2 3 14
18 17 naughty 5 2 4 1 5
19 18 lax 5 3 4 5 10
20 19 quirky 5 5 4 4 25
21 20 naive 5 6 4 3 15
22 21 brave 6 2 3 1 3
23 22 relaxed 6 3 3 5 8
24 23 quiet 6 4 3 2 18
25 24 sassy 6 5 3 4 23
26 25 serious 6 6 3 3 13

View file

@ -1392,6 +1392,8 @@ class Nature(TableBase):
info=dict(description=u"ID of the Berry flavor the Pokémon hates (if likes_flavor_id is the same, the effects cancel out)")) info=dict(description=u"ID of the Berry flavor the Pokémon hates (if likes_flavor_id is the same, the effects cancel out)"))
likes_flavor_id = Column(Integer, ForeignKey('contest_types.id'), nullable=False, likes_flavor_id = Column(Integer, ForeignKey('contest_types.id'), nullable=False,
info=dict(description=u"ID of the Berry flavor the Pokémon likes (if hates_flavor_id is the same, the effects cancel out)")) info=dict(description=u"ID of the Berry flavor the Pokémon likes (if hates_flavor_id is the same, the effects cancel out)"))
game_index = Column(Integer, unique=True, nullable=False,
info=dict(description=u"This nature's internal ID in the games."))
@property @property
def is_neutral(self): def is_neutral(self):