Lots of encounters were using slots that claimed to be for other games. #297 #281

This commit is contained in:
Eevee 2011-01-26 21:33:03 -08:00
parent 3651810467
commit 4414bab714
4 changed files with 3781 additions and 3724 deletions

View file

@ -31,40 +31,40 @@ id,version_group_id,encounter_terrain_id,slot,rarity
30,8,5,3,5
31,8,5,4,4
32,8,5,5,1
33,9,1,1,20
34,9,1,2,20
35,9,1,3,10
36,9,1,4,10
37,9,1,5,10
38,9,1,6,10
39,9,1,7,5
40,9,1,8,5
41,9,1,9,4
42,9,1,10,4
43,9,1,11,1
44,9,1,12,1
45,9,2,1,40
46,9,2,2,30
47,9,2,3,15
48,9,2,4,10
49,9,2,5,5
50,9,3,1,40
51,9,3,2,30
52,9,3,3,15
53,9,3,4,10
54,9,3,5,5
55,9,4,1,40
56,9,4,2,30
57,9,4,3,15
58,9,4,4,10
59,9,4,5,5
60,9,5,1,60
61,9,5,2,30
62,9,5,3,5
63,9,5,4,4
64,9,5,5,1
65,9,6,1,90
66,9,6,2,10
33,10,1,1,20
34,10,1,2,20
35,10,1,3,10
36,10,1,4,10
37,10,1,5,10
38,10,1,6,10
39,10,1,7,5
40,10,1,8,5
41,10,1,9,4
42,10,1,10,4
43,10,1,11,1
44,10,1,12,1
45,10,2,1,40
46,10,2,2,30
47,10,2,3,15
48,10,2,4,10
49,10,2,5,5
50,10,3,1,40
51,10,3,2,30
52,10,3,3,15
53,10,3,4,10
54,10,3,5,5
55,10,4,1,40
56,10,4,2,30
57,10,4,3,15
58,10,4,4,10
59,10,4,5,5
60,10,5,1,60
61,10,5,2,30
62,10,5,3,5
63,10,5,4,4
64,10,5,5,1
65,10,6,1,90
66,10,6,2,10
67,1,1,1,20
68,1,1,2,20
69,1,1,3,15
@ -121,3 +121,35 @@ id,version_group_id,encounter_terrain_id,slot,rarity
120,2,4,2,30
121,2,4,3,20
122,2,4,4,10
123,9,1,1,20
124,9,1,2,20
125,9,1,3,10
126,9,1,4,10
127,9,1,5,10
128,9,1,6,10
129,9,1,7,5
130,9,1,8,5
131,9,1,9,4
132,9,1,10,4
133,9,1,11,1
134,9,1,12,1
135,9,2,1,60
136,9,2,2,30
137,9,2,3,5
138,9,2,4,4
139,9,2,5,1
140,9,3,1,40
141,9,3,2,40
142,9,3,3,15
143,9,3,4,4
144,9,3,5,1
145,9,4,1,40
146,9,4,2,40
147,9,4,3,15
148,9,4,4,4
149,9,4,5,1
150,9,5,1,60
151,9,5,2,30
152,9,5,3,5
153,9,5,4,4
154,9,5,5,1

1 id version_group_id encounter_terrain_id slot rarity
31 30 8 5 3 5
32 31 8 5 4 4
33 32 8 5 5 1
34 33 9 10 1 1 20
35 34 9 10 1 2 20
36 35 9 10 1 3 10
37 36 9 10 1 4 10
38 37 9 10 1 5 10
39 38 9 10 1 6 10
40 39 9 10 1 7 5
41 40 9 10 1 8 5
42 41 9 10 1 9 4
43 42 9 10 1 10 4
44 43 9 10 1 11 1
45 44 9 10 1 12 1
46 45 9 10 2 1 40
47 46 9 10 2 2 30
48 47 9 10 2 3 15
49 48 9 10 2 4 10
50 49 9 10 2 5 5
51 50 9 10 3 1 40
52 51 9 10 3 2 30
53 52 9 10 3 3 15
54 53 9 10 3 4 10
55 54 9 10 3 5 5
56 55 9 10 4 1 40
57 56 9 10 4 2 30
58 57 9 10 4 3 15
59 58 9 10 4 4 10
60 59 9 10 4 5 5
61 60 9 10 5 1 60
62 61 9 10 5 2 30
63 62 9 10 5 3 5
64 63 9 10 5 4 4
65 64 9 10 5 5 1
66 65 9 10 6 1 90
67 66 9 10 6 2 10
68 67 1 1 1 20
69 68 1 1 2 20
70 69 1 1 3 15
121 120 2 4 2 30
122 121 2 4 3 20
123 122 2 4 4 10
124 123 9 1 1 20
125 124 9 1 2 20
126 125 9 1 3 10
127 126 9 1 4 10
128 127 9 1 5 10
129 128 9 1 6 10
130 129 9 1 7 5
131 130 9 1 8 5
132 131 9 1 9 4
133 132 9 1 10 4
134 133 9 1 11 1
135 134 9 1 12 1
136 135 9 2 1 60
137 136 9 2 2 30
138 137 9 2 3 5
139 138 9 2 4 4
140 139 9 2 5 1
141 140 9 3 1 40
142 141 9 3 2 40
143 142 9 3 3 15
144 143 9 3 4 4
145 144 9 3 5 1
146 145 9 4 1 40
147 146 9 4 2 40
148 147 9 4 3 15
149 148 9 4 4 4
150 149 9 4 5 1
151 150 9 5 1 60
152 151 9 5 2 30
153 152 9 5 3 5
154 153 9 5 4 4
155 154 9 5 5 1

File diff suppressed because it is too large Load diff

View file

@ -1377,6 +1377,7 @@ EncounterConditionValueMap.condition_value = relation(EncounterConditionValue,
backref='encounter_map')
EncounterSlot.terrain = relation(EncounterTerrain, backref='slots')
EncounterSlot.version_group = relation(VersionGroup)
EncounterSlot.condition_map = relation(EncounterSlotCondition, backref='slot')
EncounterSlot.conditions = association_proxy('condition_map', 'condition')

View file

@ -0,0 +1,24 @@
from nose.tools import *
import unittest
from sqlalchemy.orm import aliased
from pokedex.db import connect, tables
def test_encounter_slots():
# Encounters have a version, which has a version group; encounters also
# have an encounter_slot, which has a version group. The two version
# groups should match, universally.
session = connect()
version_group_a = aliased(tables.VersionGroup)
version_group_b = aliased(tables.VersionGroup)
sanity_q = session.query(tables.Encounter) \
.join((tables.EncounterSlot, tables.Encounter.slot)) \
.join((version_group_a, tables.EncounterSlot.version_group)) \
.join((tables.Version, tables.Encounter.version)) \
.join((version_group_b, tables.Version.version_group)) \
.filter(version_group_a.id != version_group_b.id)
assert_equal(sanity_q.count(), 0,
"Encounter slots all match the encounters they belong to")