Add Conquest move info.

This commit is contained in:
Lynn "Zhorken" Vaughan 2012-08-03 13:03:56 -04:00
parent ec5b138162
commit 707b34fb8f
5 changed files with 293 additions and 0 deletions

View file

@ -0,0 +1,124 @@
move_id,power,accuracy,effect_chance,effect_id,range_id,displacement_id
1,26,100,,60,2,
2,31,100,,9,2,
3,10,90,,14,2,
17,31,100,,60,2,
22,24,100,,60,7,
29,39,100,30,44,2,
33,31,100,,60,2,
34,45,100,30,37,11,1
40,12,100,30,39,3,
41,26,100,20,68,3,
44,36,100,30,44,2,
52,26,100,10,41,11,
53,45,100,10,41,4,
55,24,100,,60,3,
56,51,80,,60,4,
58,45,100,10,42,4,
59,51,70,10,42,16,
60,35,100,10,43,4,
61,38,100,10,33,17,
67,31,90,,60,2,
71,20,100,,21,2,
72,26,100,50,21,2,
75,31,95,,9,4,
80,41,100,,64,5,
82,40,75,,0,3,
83,12,85,,15,14,
84,24,100,10,37,3,
85,45,100,10,37,15,
87,51,70,30,37,12,
91,41,100,,16,11,
93,29,100,10,43,12,
94,44,100,10,30,13,
95,,60,100,38,3,
98,31,100,,60,2,
100,,,,22,1,
122,14,100,30,37,2,
126,51,85,10,41,19,
136,65,90,,26,11,1
138,48,100,,67,2,
145,20,100,10,33,3,
150,,,,60,1,
154,10,90,,14,2,
157,41,90,30,44,4,
158,43,90,10,44,2,
163,41,100,,9,2,
172,32,100,10,62,11,1
181,24,100,10,42,3,
185,36,,,52,2,
188,44,100,30,39,18,
189,17,100,100,36,3,
196,34,95,100,58,7,
200,41,100,,64,5,
209,39,100,30,37,2,
210,12,95,,3,7,
231,45,75,30,30,7,4
232,31,95,10,28,2,
238,45,80,,9,10,
242,43,100,20,30,2,
247,43,100,20,30,11,
248,45,100,,18,16,
276,55,100,100,59,2,4
301,18,90,,3,11,1
304,44,100,,60,6,
305,31,100,30,40,2,
309,48,85,20,28,2,4
310,20,100,30,44,2,4
317,31,80,100,58,11,
337,43,100,,60,2,
342,29,100,10,66,7,
344,58,100,10,63,15,1
348,45,100,,9,2,
350,10,90,,14,11,
352,36,100,20,43,3,
358,36,100,,65,2,
360,18,100,,6,11,1
362,35,100,,48,3,
372,31,100,,7,2,
395,31,100,30,37,2,4
396,45,,,52,11,4
398,43,100,30,39,2,
400,38,100,,9,7,
401,44,90,,60,7,4
404,41,100,,60,10,
406,44,100,,60,4,
407,45,75,20,44,13,2
413,58,100,,25,8,1
414,44,100,10,30,9,
418,26,100,,60,2,
424,39,95,10,61,2,
425,26,100,,60,2,
426,39,85,30,36,11,
427,38,100,,9,3,
430,41,100,10,30,9,
435,41,100,30,37,6,
437,52,90,100,29,6,
439,58,90,,23,12,
440,38,100,10,66,10,
442,43,100,30,44,2,4
444,45,80,,9,9,
449,55,100,,60,6,
450,36,100,,51,2,
459,58,90,,23,21,
473,43,100,,60,11,
474,35,100,,49,15,
481,38,100,,60,18,
486,26,100,,5,11,
492,47,100,,8,2,
506,31,100,,2,2,
507,36,100,,17,2,
510,28,100,,47,4,
521,41,100,,19,11,3
523,33,100,100,58,5,
525,33,90,,20,7,4
529,41,95,,9,11,1
533,45,100,,4,2,
535,43,100,,60,11,1
539,42,95,40,36,5,
540,45,100,,60,20,
541,23,85,,14,7,
550,57,85,20,37,2,4
551,55,85,20,41,9,
552,41,100,50,28,13,2
556,45,90,30,44,11,
1 move_id power accuracy effect_chance effect_id range_id displacement_id
2 1 26 100 60 2
3 2 31 100 9 2
4 3 10 90 14 2
5 17 31 100 60 2
6 22 24 100 60 7
7 29 39 100 30 44 2
8 33 31 100 60 2
9 34 45 100 30 37 11 1
10 40 12 100 30 39 3
11 41 26 100 20 68 3
12 44 36 100 30 44 2
13 52 26 100 10 41 11
14 53 45 100 10 41 4
15 55 24 100 60 3
16 56 51 80 60 4
17 58 45 100 10 42 4
18 59 51 70 10 42 16
19 60 35 100 10 43 4
20 61 38 100 10 33 17
21 67 31 90 60 2
22 71 20 100 21 2
23 72 26 100 50 21 2
24 75 31 95 9 4
25 80 41 100 64 5
26 82 40 75 0 3
27 83 12 85 15 14
28 84 24 100 10 37 3
29 85 45 100 10 37 15
30 87 51 70 30 37 12
31 91 41 100 16 11
32 93 29 100 10 43 12
33 94 44 100 10 30 13
34 95 60 100 38 3
35 98 31 100 60 2
36 100 22 1
37 122 14 100 30 37 2
38 126 51 85 10 41 19
39 136 65 90 26 11 1
40 138 48 100 67 2
41 145 20 100 10 33 3
42 150 60 1
43 154 10 90 14 2
44 157 41 90 30 44 4
45 158 43 90 10 44 2
46 163 41 100 9 2
47 172 32 100 10 62 11 1
48 181 24 100 10 42 3
49 185 36 52 2
50 188 44 100 30 39 18
51 189 17 100 100 36 3
52 196 34 95 100 58 7
53 200 41 100 64 5
54 209 39 100 30 37 2
55 210 12 95 3 7
56 231 45 75 30 30 7 4
57 232 31 95 10 28 2
58 238 45 80 9 10
59 242 43 100 20 30 2
60 247 43 100 20 30 11
61 248 45 100 18 16
62 276 55 100 100 59 2 4
63 301 18 90 3 11 1
64 304 44 100 60 6
65 305 31 100 30 40 2
66 309 48 85 20 28 2 4
67 310 20 100 30 44 2 4
68 317 31 80 100 58 11
69 337 43 100 60 2
70 342 29 100 10 66 7
71 344 58 100 10 63 15 1
72 348 45 100 9 2
73 350 10 90 14 11
74 352 36 100 20 43 3
75 358 36 100 65 2
76 360 18 100 6 11 1
77 362 35 100 48 3
78 372 31 100 7 2
79 395 31 100 30 37 2 4
80 396 45 52 11 4
81 398 43 100 30 39 2
82 400 38 100 9 7
83 401 44 90 60 7 4
84 404 41 100 60 10
85 406 44 100 60 4
86 407 45 75 20 44 13 2
87 413 58 100 25 8 1
88 414 44 100 10 30 9
89 418 26 100 60 2
90 424 39 95 10 61 2
91 425 26 100 60 2
92 426 39 85 30 36 11
93 427 38 100 9 3
94 430 41 100 10 30 9
95 435 41 100 30 37 6
96 437 52 90 100 29 6
97 439 58 90 23 12
98 440 38 100 10 66 10
99 442 43 100 30 44 2 4
100 444 45 80 9 9
101 449 55 100 60 6
102 450 36 100 51 2
103 459 58 90 23 21
104 473 43 100 60 11
105 474 35 100 49 15
106 481 38 100 60 18
107 486 26 100 5 11
108 492 47 100 8 2
109 506 31 100 2 2
110 507 36 100 17 2
111 510 28 100 47 4
112 521 41 100 19 11 3
113 523 33 100 100 58 5
114 525 33 90 20 7 4
115 529 41 95 9 11 1
116 533 45 100 4 2
117 535 43 100 60 11 1
118 539 42 95 40 36 5
119 540 45 100 60 20
120 541 23 85 14 7
121 550 57 85 20 37 2 4
122 551 55 85 20 41 9
123 552 41 100 50 28 13 2
124 556 45 90 30 44 11

View file

@ -0,0 +1,5 @@
id,identifier,affects_target
1,advance-1,0
2,advance-2,0
3,switch-back,0
4,knockback,1
1 id identifier affects_target
2 1 advance-1 0
3 2 advance-2 0
4 3 switch-back 0
5 4 knockback 1

View file

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

View file

@ -0,0 +1,22 @@
id,identifier
1,user
2,tile-1-ahead
3,column-2-tiles
4,column-3-tiles
5,diamond-adjacent
6,ring-adjacent
7,row
8,chevron
9,plus
10,x-shape
11,tile-2-ahead
12,tile-3-ahead
13,diamond-2-ahead
14,ring-2-ahead
15,row-2-ahead
16,2-rows-2-ahead
17,column-2-ahead
18,x-shape-2-ahead
19,dai
20,t-shape
21,2-rows
1 id identifier
2 1 user
3 2 tile-1-ahead
4 3 column-2-tiles
5 4 column-3-tiles
6 5 diamond-adjacent
7 6 ring-adjacent
8 7 row
9 8 chevron
10 9 plus
11 10 x-shape
12 11 tile-2-ahead
13 12 tile-3-ahead
14 13 diamond-2-ahead
15 14 ring-2-ahead
16 15 row-2-ahead
17 16 2-rows-2-ahead
18 17 column-2-ahead
19 18 x-shape-2-ahead
20 19 dai
21 20 t-shape
22 21 2-rows

View file

@ -247,6 +247,69 @@ class ConquestMaxLink(TableBase):
max_link = Column(Integer, nullable=False,
info=dict(description='The maximum link percentage this warrior rank and Pokémon can reach.'))
class ConquestMoveData(TableBase):
u"""Data about a move in Pokémon Conquest.
"""
__tablename__ = 'conquest_move_data'
move_id = Column(Integer, ForeignKey('moves.id'), primary_key=True, autoincrement=False,
info=dict(description=u'The ID of the move.'))
power = Column(Integer, nullable=True,
info=dict(description=u"The move's power, null if it does no damage."))
accuracy = Column(Integer, nullable=True,
info=dict(description=u"The move's base accuracy, null if it is self-targetted or never misses."))
effect_chance = Column(Integer, nullable=True,
info=dict(description=u"The chance as a percentage that the move's secondary effect will trigger."))
effect_id = Column(Integer, ForeignKey('conquest_move_effects.id'), nullable=False,
info=dict(description=u"The ID of the move's effect."))
range_id = Column(Integer, ForeignKey('conquest_move_ranges.id'), nullable=False,
info=dict(description=u"The ID of the move's range."))
displacement_id = Column(Integer, ForeignKey('conquest_move_displacements.id'), nullable=True,
info=dict(description=u"The ID of the move's displacement."))
@property
def star_rating(self):
"""Return the move's in-game power rating as a number of stars."""
if not self.power:
return 0
else:
stars = (self.power - 1) // 10
stars = min(stars, 5) # i.e. maximum of 5 stars
stars = max(stars, 1) # And minimum of 1
return stars
class ConquestMoveEffect(TableBase):
u"""An effect moves can have in Pokémon Conquest.
"""
__tablename__ = 'conquest_move_effects'
__singlename__ = 'conquest_move_effect'
id = Column(Integer, primary_key=True, autoincrement=True,
info=dict(description=u'An ID for this effect.'))
class ConquestMoveRange(TableBase):
u"""A range moves can have in Pokémon Conquest."""
__tablename__ = 'conquest_move_ranges'
__singlename__ = 'conquest_move_range'
id = Column(Integer, primary_key=True, autoincrement=True,
info=dict(description=u'An ID for this range.'))
identifier = Column(Unicode(16), nullable=False,
info=dict(description=u'A readable identifier for this range.'))
class ConquestMoveDisplacement(TableBase):
u"""A way in which a move can cause the user or target to move to a
different tile.
If a move displaces its user, the move's range is relative to the user's
original position.
"""
__tablename__ = 'conquest_move_displacements'
__singlename__ = 'move_displacement'
id = Column(Integer, primary_key=True, autoincrement=True,
info=dict(description=u'An ID for this displacement.'))
identifier = Column(Unicode(11), nullable=False,
info=dict(description=u'A readable identifier for this displacement.'))
affects_target = Column(Boolean, nullable=False,
info=dict(description=u'True iff the move displaces its target(s) and not its user.'))
class ConquestPokemonAbility(TableBase):
u"""An ability a Pokémon species has in Pokémon Conquest.
"""
@ -1961,6 +2024,15 @@ ConquestMaxLink.warrior_rank = relationship(ConquestWarriorRank,
backref=backref('max_links', lazy='dynamic'))
ConquestMaxLink.warrior = association_proxy('warrior_rank', 'warrior')
ConquestMoveData.effect = relationship(ConquestMoveEffect,
uselist=False,
innerjoin=True, lazy='joined',
backref='moves')
ConquestMoveData.move = relationship(Move,
uselist=False,
innerjoin=True, lazy='joined',
backref='conquest_data')
ConquestPokemonEvolution.gender = relationship(Gender,
backref='conquest_evolutions')
ConquestPokemonEvolution.item = relationship(Item,