Add B/W encounter methods and conditions

Spots: it might seem like they should be conditions, but in practice
they behave more like methods. Specifically, conditions typically make
only minor changes to an encounter list. Spots change everything.
So spots are added as methods, with each type of spot as a separate
method. Not exactly ideal, but this causes the least fuss.

Seasons work fine as conditions.

Well, as well as time-of-day.
This commit is contained in:
Andrew Ekstedt 2011-12-06 20:26:31 -08:00
parent c5fee20ef1
commit ca5b7a9cbf
7 changed files with 32 additions and 8 deletions

View file

@ -4,3 +4,4 @@ encounter_condition_id,local_language_id,name
3,9,PokeRadar
4,9,Gen 3 game in slot 2
5,9,Radio
6,9,Season

1 encounter_condition_id local_language_id name
4 3 9 PokeRadar
5 4 9 Gen 3 game in slot 2
6 5 9 Radio
7 6 9 Season

View file

@ -15,3 +15,7 @@ encounter_condition_value_id,local_language_id,name
14,9,Radio off
15,9,Hoenn radio
16,9,Sinnoh radio
17,9,During Spring
18,9,During Summer
19,9,During Autumn
20,9,During Winter

1 encounter_condition_value_id local_language_id name
15 14 9 Radio off
16 15 9 Hoenn radio
17 16 9 Sinnoh radio
18 17 9 During Spring
19 18 9 During Summer
20 19 9 During Autumn
21 20 9 During Winter

View file

@ -15,3 +15,7 @@ id,encounter_condition_id,identifier,is_default
14,5,radio-off,1
15,5,radio-hoenn,0
16,5,radio-sinnoh,0
17,6,season-spring,0
18,6,season-summer,0
19,6,season-autumn,0
20,6,season-winter,0

1 id encounter_condition_id identifier is_default
15 14 5 radio-off 1
16 15 5 radio-hoenn 0
17 16 5 radio-sinnoh 0
18 17 6 season-spring 0
19 18 6 season-summer 0
20 19 6 season-autumn 0
21 20 6 season-winter 0

View file

@ -4,3 +4,4 @@ id,identifier
3,radar
4,slot2
5,radio
6,season

1 id identifier
4 3 radar
5 4 slot2
6 5 radio
7 6 season

View file

@ -6,3 +6,9 @@ encounter_method_id,local_language_id,name
5,9,Surfing
6,9,Smashing rocks
7,9,Headbutting trees
8,9,Walking in dark grass
9,9,Walking in rustling grass
10,9,Walking in dust clouds
11,9,Walking in bridge shadows
12,9,Fishing in dark spots
13,9,Surfing in dark spots

1 encounter_method_id local_language_id name
6 5 9 Surfing
7 6 9 Smashing rocks
8 7 9 Headbutting trees
9 8 9 Walking in dark grass
10 9 9 Walking in rustling grass
11 10 9 Walking in dust clouds
12 11 9 Walking in bridge shadows
13 12 9 Fishing in dark spots
14 13 9 Surfing in dark spots

View file

@ -1,8 +1,14 @@
id,identifier
1,walk
2,old-rod
3,good-rod
4,super-rod
5,surf
6,rock-smash
7,headbutt
id,identifier,order
1,walk,1
2,old-rod,6
3,good-rod,7
4,super-rod,8
5,surf,10
6,rock-smash,12
7,headbutt,13
8,dark-grass,5
9,grass-spots,2
10,cave-spots,3
11,bridge-spots,4
12,super-rod-spots,9
13,surf-spots,11

1 id identifier order
2 1 walk 1
3 2 old-rod 6
4 3 good-rod 7
5 4 super-rod 8
6 5 surf 10
7 6 rock-smash 12
8 7 headbutt 13
9 8 dark-grass 5
10 9 grass-spots 2
11 10 cave-spots 3
12 11 bridge-spots 4
13 12 super-rod-spots 9
14 13 surf-spots 11

View file

@ -779,6 +779,8 @@ class EncounterMethod(TableBase):
info=dict(description="A unique ID for the method"))
identifier = Column(Unicode(16), nullable=False, unique=True,
info=dict(description="An identifier", format='identifier'))
order = Column(Integer, unique=True, nullable=False,
info=dict(description="A good column for sorting on"))
create_translation_table('encounter_method_prose', EncounterMethod, 'prose',
name = Column(Unicode(64), nullable=False, index=True,