Jammed in a bunch of nature stuff.

This commit is contained in:
Eevee 2010-04-26 23:26:37 -07:00
parent affb8a02fb
commit 58dccb1803
6 changed files with 200 additions and 26 deletions

View file

@ -0,0 +1,4 @@
id,name
1,Attack
2,Defense
3,Support
1 id name
2 1 Attack
3 2 Defense
4 3 Support

View file

@ -0,0 +1,76 @@
nature_id,move_battle_style_id,low_hp_preference,high_hp_preference
1,1,61,61
1,2,7,7
1,3,32,32
2,1,32,30
2,2,58,20
2,3,10,50
3,1,34,35
3,2,60,45
3,3,6,20
4,1,25,40
4,2,62,50
4,3,13,10
5,1,30,62
5,2,20,10
5,3,50,28
6,1,84,20
6,2,8,25
6,3,8,55
7,1,56,56
7,2,22,22
7,3,22,22
8,1,34,44
8,2,6,50
8,3,60,6
9,1,90,18
9,2,5,70
9,3,5,12
10,1,88,58
10,2,6,37
10,3,6,5
11,1,70,38
11,2,15,31
11,3,15,31
12,1,28,69
12,2,55,6
12,3,17,25
13,1,30,30
13,2,58,58
13,3,12,12
14,1,42,42
14,2,5,50
14,3,53,8
15,1,27,30
15,2,6,13
15,3,67,57
16,1,35,35
16,2,60,5
16,3,5,60
17,1,70,20
17,2,22,70
17,3,8,10
18,1,29,35
18,2,6,10
18,3,65,55
19,1,56,56
19,2,22,22
19,3,22,22
20,1,56,56
20,2,22,22
20,3,22,22
21,1,32,70
21,2,60,15
21,3,8,15
22,1,75,25
22,2,15,15
22,3,10,60
23,1,56,56
23,2,22,22
23,3,22,22
24,1,22,88
24,2,20,6
24,3,58,6
25,1,29,34
25,2,11,11
25,3,60,55
1 nature_id move_battle_style_id low_hp_preference high_hp_preference
2 1 1 61 61
3 1 2 7 7
4 1 3 32 32
5 2 1 32 30
6 2 2 58 20
7 2 3 10 50
8 3 1 34 35
9 3 2 60 45
10 3 3 6 20
11 4 1 25 40
12 4 2 62 50
13 4 3 13 10
14 5 1 30 62
15 5 2 20 10
16 5 3 50 28
17 6 1 84 20
18 6 2 8 25
19 6 3 8 55
20 7 1 56 56
21 7 2 22 22
22 7 3 22 22
23 8 1 34 44
24 8 2 6 50
25 8 3 60 6
26 9 1 90 18
27 9 2 5 70
28 9 3 5 12
29 10 1 88 58
30 10 2 6 37
31 10 3 6 5
32 11 1 70 38
33 11 2 15 31
34 11 3 15 31
35 12 1 28 69
36 12 2 55 6
37 12 3 17 25
38 13 1 30 30
39 13 2 58 58
40 13 3 12 12
41 14 1 42 42
42 14 2 5 50
43 14 3 53 8
44 15 1 27 30
45 15 2 6 13
46 15 3 67 57
47 16 1 35 35
48 16 2 60 5
49 16 3 5 60
50 17 1 70 20
51 17 2 22 70
52 17 3 8 10
53 18 1 29 35
54 18 2 6 10
55 18 3 65 55
56 19 1 56 56
57 19 2 22 22
58 19 3 22 22
59 20 1 56 56
60 20 2 22 22
61 20 3 22 22
62 21 1 32 70
63 21 2 60 15
64 21 3 8 15
65 22 1 75 25
66 22 2 15 15
67 22 3 10 60
68 23 1 56 56
69 23 2 22 22
70 23 3 22 22
71 24 1 22 88
72 24 2 20 6
73 24 3 58 6
74 25 1 29 34
75 25 2 11 11
76 25 3 60 55

View file

@ -0,0 +1,51 @@
nature_id,pokeathlon_stat_id,max_change
1,1,-1
1,2,1
2,1,-2
2,3,2
3,1,-2
3,5,2
4,1,-2
4,2,2
5,1,2
5,2,-2
6,1,2
6,3,-2
7,3,1
7,5,-1
8,3,-2
8,5,2
9,1,2
9,3,-2
10,1,2
10,3,-2
11,1,2
11,5,-2
12,3,2
12,5,-2
13,1,-1
13,5,1
14,2,2
14,5,-2
15,2,-2
15,5,2
16,1,2
16,5,-2
17,1,2
17,2,-2
18,1,-2
18,3,2
19,1,1
19,3,-1
20,1,2
20,2,-2
21,1,-2
21,2,2
22,1,-2
22,3,2
23,1,-2
23,5,2
24,1,-2
24,2,2
25,1,1
25,2,-1
1 nature_id pokeathlon_stat_id max_change
2 1 1 -1
3 1 2 1
4 2 1 -2
5 2 3 2
6 3 1 -2
7 3 5 2
8 4 1 -2
9 4 2 2
10 5 1 2
11 5 2 -2
12 6 1 2
13 6 3 -2
14 7 3 1
15 7 5 -1
16 8 3 -2
17 8 5 2
18 9 1 2
19 9 3 -2
20 10 1 2
21 10 3 -2
22 11 1 2
23 11 5 -2
24 12 3 2
25 12 5 -2
26 13 1 -1
27 13 5 1
28 14 2 2
29 14 5 -2
30 15 2 -2
31 15 5 2
32 16 1 2
33 16 5 -2
34 17 1 2
35 17 2 -2
36 18 1 -2
37 18 3 2
38 19 1 1
39 19 3 -1
40 20 1 2
41 20 2 -2
42 21 1 -2
43 21 2 2
44 22 1 -2
45 22 3 2
46 23 1 -2
47 23 5 2
48 24 1 -2
49 24 2 2
50 25 1 1
51 25 2 -1

View file

@ -1,26 +1,26 @@
id,name,decreased_stat_id,increased_stat_id id,name,decreased_stat_id,increased_stat_id,hates_flavor_id,likes_flavor_id
1,Hardy,2,2 1,Hardy,2,2,1,1
2,Bold,2,3 2,Bold,2,3,1,5
3,Modest,2,4 3,Modest,2,4,1,2
4,Calm,2,5 4,Calm,2,5,1,4
5,Timid,2,6 5,Timid,2,6,1,3
6,Lonely,3,2 6,Lonely,3,2,5,1
7,Docile,3,3 7,Docile,3,3,5,5
8,Mild,3,4 8,Mild,3,4,5,2
9,Gentle,3,5 9,Gentle,3,5,5,4
10,Hasty,3,6 10,Hasty,3,6,5,3
11,Adamant,4,2 11,Adamant,4,2,2,1
12,Impish,4,3 12,Impish,4,3,2,5
13,Bashful,4,4 13,Bashful,4,4,2,2
14,Careful,4,5 14,Careful,4,5,2,4
15,Rash,5,4 15,Rash,5,4,4,2
16,Jolly,4,6 16,Jolly,4,6,2,3
17,Naughty,5,2 17,Naughty,5,2,4,1
18,Lax,5,3 18,Lax,5,3,4,5
19,Quirky,5,5 19,Quirky,5,5,4,4
20,Naive,5,6 20,Naive,5,6,4,3
21,Brave,6,2 21,Brave,6,2,3,1
22,Relaxed,6,3 22,Relaxed,6,3,3,5
23,Quiet,6,4 23,Quiet,6,4,3,2
24,Sassy,6,5 24,Sassy,6,5,3,4
25,Serious,6,6 25,Serious,6,6,3,3

1 id name decreased_stat_id increased_stat_id hates_flavor_id likes_flavor_id
2 1 Hardy 2 2 1 1
3 2 Bold 2 3 1 5
4 3 Modest 2 4 1 2
5 4 Calm 2 5 1 4
6 5 Timid 2 6 1 3
7 6 Lonely 3 2 5 1
8 7 Docile 3 3 5 5
9 8 Mild 3 4 5 2
10 9 Gentle 3 5 5 4
11 10 Hasty 3 6 5 3
12 11 Adamant 4 2 2 1
13 12 Impish 4 3 2 5
14 13 Bashful 4 4 2 2
15 14 Careful 4 5 2 4
16 15 Rash 5 4 4 2
17 16 Jolly 4 6 2 3
18 17 Naughty 5 2 4 1
19 18 Lax 5 3 4 5
20 19 Quirky 5 5 4 4
21 20 Naive 5 6 4 3
22 21 Brave 6 2 3 1
23 22 Relaxed 6 3 3 5
24 23 Quiet 6 4 3 2
25 24 Sassy 6 5 3 4
26 25 Serious 6 6 3 3

View file

@ -0,0 +1,6 @@
id,name
1,Speed
2,Power
3,Skill
4,Stamina
5,Jump
1 id name
2 1 Speed
3 2 Power
4 3 Skill
5 4 Stamina
6 5 Jump

View file

@ -254,6 +254,11 @@ class Machine(TableBase):
version_group_id = Column(Integer, ForeignKey('version_groups.id'), primary_key=True, nullable=False, autoincrement=False) version_group_id = Column(Integer, ForeignKey('version_groups.id'), primary_key=True, nullable=False, autoincrement=False)
move_id = Column(Integer, ForeignKey('moves.id'), nullable=False) move_id = Column(Integer, ForeignKey('moves.id'), nullable=False)
class MoveBattleStyle(TableBase):
__tablename__ = 'move_battle_styles'
id = Column(Integer, primary_key=True, nullable=False)
name = Column(Unicode(8), nullable=False)
class MoveEffectCategory(TableBase): class MoveEffectCategory(TableBase):
__tablename__ = 'move_effect_categories' __tablename__ = 'move_effect_categories'
id = Column(Integer, primary_key=True, nullable=False) id = Column(Integer, primary_key=True, nullable=False)
@ -333,6 +338,26 @@ class Nature(TableBase):
name = Column(Unicode(8), nullable=False) name = Column(Unicode(8), nullable=False)
decreased_stat_id = Column(Integer, ForeignKey('stats.id'), nullable=False) decreased_stat_id = Column(Integer, ForeignKey('stats.id'), nullable=False)
increased_stat_id = Column(Integer, ForeignKey('stats.id'), nullable=False) increased_stat_id = Column(Integer, ForeignKey('stats.id'), nullable=False)
hates_flavor_id = Column(Integer, ForeignKey('contest_types.id'), nullable=False)
likes_flavor_id = Column(Integer, ForeignKey('contest_types.id'), nullable=False)
class NatureBattleStylePreference(TableBase):
__tablename__ = 'nature_battle_style_preferences'
nature_id = Column(Integer, ForeignKey('natures.id'), primary_key=True, nullable=False)
move_battle_style_id = Column(Integer, ForeignKey('move_battle_styles.id'), primary_key=True, nullable=False)
low_hp_preference = Column(Integer, nullable=False)
high_hp_preference = Column(Integer, nullable=False)
class NaturePokeathlonStat(TableBase):
__tablename__ = 'nature_pokeathlon_stats'
nature_id = Column(Integer, ForeignKey('natures.id'), primary_key=True, nullable=False)
pokeathlon_stat_id = Column(Integer, ForeignKey('pokeathlon_stats.id'), primary_key=True, nullable=False)
max_change = Column(Integer, nullable=False)
class PokeathlonStat(TableBase):
__tablename__ = 'pokeathlon_stats'
id = Column(Integer, primary_key=True, nullable=False)
name = Column(Unicode(8), nullable=False)
class Pokedex(TableBase): class Pokedex(TableBase):
__tablename__ = 'pokedexes' __tablename__ = 'pokedexes'
@ -665,6 +690,18 @@ Nature.decreased_stat = relation(Stat, primaryjoin=Nature.decreased_stat_id==Sta
backref='decreasing_natures') backref='decreasing_natures')
Nature.increased_stat = relation(Stat, primaryjoin=Nature.increased_stat_id==Stat.id, Nature.increased_stat = relation(Stat, primaryjoin=Nature.increased_stat_id==Stat.id,
backref='increasing_natures') backref='increasing_natures')
Nature.hates_flavor = relation(ContestType, primaryjoin=Nature.hates_flavor_id==ContestType.id,
backref='hating_natures')
Nature.likes_flavor = relation(ContestType, primaryjoin=Nature.likes_flavor_id==ContestType.id,
backref='liking_natures')
Nature.battle_style_preferences = relation(NatureBattleStylePreference,
order_by=NatureBattleStylePreference.move_battle_style_id,
backref='nature')
Nature.pokeathlon_effects = relation(NaturePokeathlonStat, order_by=NaturePokeathlonStat.pokeathlon_stat_id)
NatureBattleStylePreference.battle_style = relation(MoveBattleStyle, backref='nature_preferences')
NaturePokeathlonStat.pokeathlon_stat = relation(PokeathlonStat, backref='nature_effects')
Pokedex.region = relation(Region, backref='pokedexes') Pokedex.region = relation(Region, backref='pokedexes')
Pokedex.version_groups = relation(VersionGroup, secondary=PokedexVersionGroup.__table__, backref='pokedexes') Pokedex.version_groups = relation(VersionGroup, secondary=PokedexVersionGroup.__table__, backref='pokedexes')