aboutsummaryrefslogtreecommitdiffstats
path: root/data/wild
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-03 11:51:00 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-03 11:51:00 -0400
commitb29e5ee203b6fa4592180ef6cca732462cca9af6 (patch)
tree7634ed34bcc174f6df004a473b277d1cc3f8f218 /data/wild
parentMerge pull request #256 from Rangi42/master (diff)
downloadpokeyellow-b29e5ee203b6fa4592180ef6cca732462cca9af6.tar.gz
pokeyellow-b29e5ee203b6fa4592180ef6cca732462cca9af6.tar.xz
pokeyellow-b29e5ee203b6fa4592180ef6cca732462cca9af6.zip
Add subdirectories to data/ similar to pokecrystal
Top level text/ is now solely for the former text/maps/ files, and other files are in their respective subdirectories in data/.
Diffstat (limited to 'data/wild')
-rwxr-xr-xdata/wild/good_rod.asm3
-rwxr-xr-xdata/wild/grass_water.asm321
-rw-r--r--data/wild/probabilities.asm15
-rwxr-xr-xdata/wild/super_rod.asm100
4 files changed, 439 insertions, 0 deletions
diff --git a/data/wild/good_rod.asm b/data/wild/good_rod.asm
new file mode 100755
index 00000000..6c23f402
--- /dev/null
+++ b/data/wild/good_rod.asm
@@ -0,0 +1,3 @@
+GoodRodMons:
+ db 10,GOLDEEN
+ db 10,POLIWAG
diff --git a/data/wild/grass_water.asm b/data/wild/grass_water.asm
new file mode 100755
index 00000000..5697300e
--- /dev/null
+++ b/data/wild/grass_water.asm
@@ -0,0 +1,321 @@
+WildDataPointers:
+ dw NoMons ; PALLET_TOWN
+ dw NoMons ; VIRIDIAN_CITY
+ dw NoMons ; PEWTER_CITY
+ dw NoMons ; CERULEAN_CITY
+ dw NoMons ; LAVENDER_TOWN
+ dw NoMons ; VERMILION_CITY
+ dw NoMons ; CELADON_CITY
+ dw NoMons ; FUCHSIA_CITY
+ dw NoMons ; CINNABAR_ISLAND
+ dw NoMons ; INDIGO_PLATEAU
+ dw NoMons ; SAFFRON_CITY
+ dw NoMons ; unused
+ dw Route1Mons ; ROUTE_1
+ dw Route2Mons ; ROUTE_2
+ dw Route3Mons ; ROUTE_3
+ dw Route4Mons ; ROUTE_4
+ dw Route5Mons ; ROUTE_5
+ dw Route6Mons ; ROUTE_6
+ dw Route7Mons ; ROUTE_7
+ dw Route8Mons ; ROUTE_8
+ dw Route9Mons ; ROUTE_9
+ dw Route10Mons ; ROUTE_10
+ dw Route11Mons ; ROUTE_11
+ dw Route12Mons ; ROUTE_12
+ dw Route13Mons ; ROUTE_13
+ dw Route14Mons ; ROUTE_14
+ dw Route15Mons ; ROUTE_15
+ dw Route16Mons ; ROUTE_16
+ dw Route17Mons ; ROUTE_17
+ dw Route18Mons ; ROUTE_18
+ dw WaterMons ; ROUTE_19
+ dw WaterMons ; ROUTE_20
+ dw Route21Mons ; ROUTE_21
+ dw Route22Mons ; ROUTE_22
+ dw Route23Mons ; ROUTE_23
+ dw Route24Mons ; ROUTE_24
+ dw Route25Mons ; ROUTE_25
+ dw NoMons ; REDS_HOUSE_1F
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw ForestMons ; ViridianForest
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw MoonMons1
+ dw MoonMonsB1
+ dw MoonMonsB2
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw TunnelMonsB1
+ dw PowerPlantMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw PlateauMons1
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw TowerMons1
+ dw TowerMons2
+ dw TowerMons3
+ dw TowerMons4
+ dw TowerMons5
+ dw TowerMons6
+ dw TowerMons7
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw IslandMonsB1
+ dw IslandMonsB2
+ dw IslandMonsB3
+ dw IslandMonsB4
+ dw NoMons
+ dw NoMons
+ dw MansionMons1
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw IslandMons1
+ dw NoMons
+ dw PlateauMons2
+ dw NoMons
+ dw NoMons
+ dw CaveMons
+ dw PlateauMons3
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw MansionMons2
+ dw MansionMons3
+ dw MansionMonsB1
+ dw ZoneMons1
+ dw ZoneMons2
+ dw ZoneMons3
+ dw ZoneMonsCenter
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw DungeonMons2
+ dw DungeonMonsB1
+ dw DungeonMons1
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw TunnelMonsB2
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw NoMons
+ dw $FFFF
+
+; wild pokemon data is divided into two parts.
+; first part: pokemon found in grass
+; second part: pokemon found while surfing
+; each part goes as follows:
+ ; if first byte == 00, then
+ ; no wild pokemon on this map
+ ; if first byte != 00, then
+ ; first byte is encounter rate
+ ; followed by 20 bytes:
+ ; level, species (ten times)
+
+INCLUDE "data/mapWilds/nothing.asm"
+INCLUDE "data/mapWilds/Route1.asm"
+INCLUDE "data/mapWilds/Route2.asm"
+INCLUDE "data/mapWilds/Route22.asm"
+INCLUDE "data/mapWilds/ViridianForest.asm"
+INCLUDE "data/mapWilds/Route3.asm"
+INCLUDE "data/mapWilds/MtMoon1F.asm"
+INCLUDE "data/mapWilds/MtMoonB1F.asm"
+INCLUDE "data/mapWilds/MtMoonB2F.asm"
+INCLUDE "data/mapWilds/Route4.asm"
+INCLUDE "data/mapWilds/Route24.asm"
+INCLUDE "data/mapWilds/Route25.asm"
+INCLUDE "data/mapWilds/Route9.asm"
+INCLUDE "data/mapWilds/Route5.asm"
+INCLUDE "data/mapWilds/Route6.asm"
+INCLUDE "data/mapWilds/Route11.asm"
+INCLUDE "data/mapWilds/RockTunnel1F.asm"
+INCLUDE "data/mapWilds/RockTunnelB1F.asm"
+INCLUDE "data/mapWilds/Route10.asm"
+INCLUDE "data/mapWilds/Route12.asm"
+INCLUDE "data/mapWilds/Route8.asm"
+INCLUDE "data/mapWilds/Route7.asm"
+INCLUDE "data/mapWilds/PokemonTower1F.asm"
+INCLUDE "data/mapWilds/PokemonTower2F.asm"
+INCLUDE "data/mapWilds/PokemonTower3F.asm"
+INCLUDE "data/mapWilds/PokemonTower4F.asm"
+INCLUDE "data/mapWilds/PokemonTower5F.asm"
+INCLUDE "data/mapWilds/PokemonTower6F.asm"
+INCLUDE "data/mapWilds/PokemonTower7F.asm"
+INCLUDE "data/mapWilds/Route13.asm"
+INCLUDE "data/mapWilds/Route14.asm"
+INCLUDE "data/mapWilds/Route15.asm"
+INCLUDE "data/mapWilds/Route16.asm"
+INCLUDE "data/mapWilds/Route17.asm"
+INCLUDE "data/mapWilds/Route18.asm"
+INCLUDE "data/mapWilds/SafariZoneCenter.asm"
+INCLUDE "data/mapWilds/SafariZoneEast.asm"
+INCLUDE "data/mapWilds/SafariZoneNorth.asm"
+INCLUDE "data/mapWilds/SafariZoneWest.asm"
+INCLUDE "data/mapWilds/SeaRoutes.asm"
+INCLUDE "data/mapWilds/SeafoamIslands1F.asm"
+INCLUDE "data/mapWilds/SeafoamIslandsB1F.asm"
+INCLUDE "data/mapWilds/SeafoamIslandsB2F.asm"
+INCLUDE "data/mapWilds/SeafoamIslandsB3F.asm"
+INCLUDE "data/mapWilds/SeafoamIslandsB4F.asm"
+INCLUDE "data/mapWilds/PokemonMansion1F.asm"
+INCLUDE "data/mapWilds/PokemonMansion2F.asm"
+INCLUDE "data/mapWilds/PokemonMansion3F.asm"
+INCLUDE "data/mapWilds/PokemonMansionB1F.asm"
+INCLUDE "data/mapWilds/Route21.asm"
+INCLUDE "data/mapWilds/CeruleanCave1F.asm"
+INCLUDE "data/mapWilds/CeruleanCave2F.asm"
+INCLUDE "data/mapWilds/CeruleanCaveB1F.asm"
+INCLUDE "data/mapWilds/PowerPlant.asm"
+INCLUDE "data/mapWilds/Route23.asm"
+INCLUDE "data/mapWilds/VictoryRoad2F.asm"
+INCLUDE "data/mapWilds/VictoryRoad3F.asm"
+INCLUDE "data/mapWilds/VictoryRoad1F.asm"
+INCLUDE "data/mapWilds/DiglettsCave.asm"
diff --git a/data/wild/probabilities.asm b/data/wild/probabilities.asm
new file mode 100644
index 00000000..9d4704c6
--- /dev/null
+++ b/data/wild/probabilities.asm
@@ -0,0 +1,15 @@
+WildMonEncounterSlotChances:
+; There are 10 slots for wild pokemon, and this is the table that defines how common each of
+; those 10 slots is. A random number is generated and then the first byte of each pair in this
+; table is compared against that random number. If the random number is less than or equal
+; to the first byte, then that slot is chosen. The second byte is double the slot number.
+ db $32, $00 ; 51/256 = 19.9% chance of slot 0
+ db $65, $02 ; 51/256 = 19.9% chance of slot 1
+ db $8C, $04 ; 39/256 = 15.2% chance of slot 2
+ db $A5, $06 ; 25/256 = 9.8% chance of slot 3
+ db $BE, $08 ; 25/256 = 9.8% chance of slot 4
+ db $D7, $0A ; 25/256 = 9.8% chance of slot 5
+ db $E4, $0C ; 13/256 = 5.1% chance of slot 6
+ db $F1, $0E ; 13/256 = 5.1% chance of slot 7
+ db $FC, $10 ; 11/256 = 4.3% chance of slot 8
+ db $FF, $12 ; 3/256 = 1.2% chance of slot 9
diff --git a/data/wild/super_rod.asm b/data/wild/super_rod.asm
new file mode 100755
index 00000000..d3d64632
--- /dev/null
+++ b/data/wild/super_rod.asm
@@ -0,0 +1,100 @@
+; super rod data
+; format: map, pointer to fishing group
+SuperRodData:
+ dbw PALLET_TOWN, FishingGroup1
+ dbw VIRIDIAN_CITY, FishingGroup1
+ dbw CERULEAN_CITY, FishingGroup3
+ dbw VERMILION_CITY, FishingGroup4
+ dbw CELADON_CITY, FishingGroup5
+ dbw FUCHSIA_CITY, FishingGroup10
+ dbw CINNABAR_ISLAND, FishingGroup8
+ dbw ROUTE_4, FishingGroup3
+ dbw ROUTE_6, FishingGroup4
+ dbw ROUTE_10, FishingGroup5
+ dbw ROUTE_11, FishingGroup4
+ dbw ROUTE_12, FishingGroup7
+ dbw ROUTE_13, FishingGroup7
+ dbw ROUTE_17, FishingGroup7
+ dbw ROUTE_18, FishingGroup7
+ dbw ROUTE_19, FishingGroup8
+ dbw ROUTE_20, FishingGroup8
+ dbw ROUTE_21, FishingGroup8
+ dbw ROUTE_22, FishingGroup2
+ dbw ROUTE_23, FishingGroup9
+ dbw ROUTE_24, FishingGroup3
+ dbw ROUTE_25, FishingGroup3
+ dbw CERULEAN_GYM, FishingGroup3
+ dbw VERMILION_DOCK, FishingGroup4
+ dbw SEAFOAM_ISLANDS_B3F, FishingGroup8
+ dbw SEAFOAM_ISLANDS_B4F, FishingGroup8
+ dbw SAFARI_ZONE_EAST, FishingGroup6
+ dbw SAFARI_ZONE_NORTH, FishingGroup6
+ dbw SAFARI_ZONE_WEST, FishingGroup6
+ dbw SAFARI_ZONE_CENTER, FishingGroup6
+ dbw CERULEAN_CAVE_2F, FishingGroup9
+ dbw CERULEAN_CAVE_B1F, FishingGroup9
+ dbw CERULEAN_CAVE_1F, FishingGroup9
+ db $FF
+
+; fishing groups
+; number of monsters, followed by level/monster pairs
+FishingGroup1:
+ db 2
+ db 15,TENTACOOL
+ db 15,POLIWAG
+
+FishingGroup2:
+ db 2
+ db 15,GOLDEEN
+ db 15,POLIWAG
+
+FishingGroup3:
+ db 3
+ db 15,PSYDUCK
+ db 15,GOLDEEN
+ db 15,KRABBY
+
+FishingGroup4:
+ db 2
+ db 15,KRABBY
+ db 15,SHELLDER
+
+FishingGroup5:
+ db 2
+ db 23,POLIWHIRL
+ db 15,SLOWPOKE
+
+FishingGroup6:
+ db 4
+ db 15,DRATINI
+ db 15,KRABBY
+ db 15,PSYDUCK
+ db 15,SLOWPOKE
+
+FishingGroup7:
+ db 4
+ db 5,TENTACOOL
+ db 15,KRABBY
+ db 15,GOLDEEN
+ db 15,MAGIKARP
+
+FishingGroup8:
+ db 4
+ db 15,STARYU
+ db 15,HORSEA
+ db 15,SHELLDER
+ db 15,GOLDEEN
+
+FishingGroup9:
+ db 4
+ db 23,SLOWBRO
+ db 23,SEAKING
+ db 23,KINGLER
+ db 23,SEADRA
+
+FishingGroup10:
+ db 4
+ db 23,SEAKING
+ db 15,KRABBY
+ db 15,GOLDEEN
+ db 15,MAGIKARP