From 5a58f90ec6221906991fdf7a61aaa3f84513b714 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 24 Jun 2018 11:46:55 -0400 Subject: [PATCH] FISHGROUP_DATA_LENGTH --- constants/pokemon_data_constants.asm | 1 + engine/events/fish.asm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/constants/pokemon_data_constants.asm b/constants/pokemon_data_constants.asm index 3d27e5877..379546c45 100644 --- a/constants/pokemon_data_constants.asm +++ b/constants/pokemon_data_constants.asm @@ -158,6 +158,7 @@ NUM_WATERMON EQU 3 ; data/wild/*_water.asm table size GRASS_WILDDATA_LENGTH EQU (NUM_GRASSMON * 2 + 1) * 3 + 2 WATER_WILDDATA_LENGTH EQU (NUM_WATERMON * 2 + 1) * 1 + 2 +FISHGROUP_DATA_LENGTH EQU 1 + 2 * 3 NUM_ROAMMON_MAPS EQU 16 ; RoamMaps table size (see data/wild/roammon_maps.asm) diff --git a/engine/events/fish.asm b/engine/events/fish.asm index 09de8f2b7..63c48b4ee 100644 --- a/engine/events/fish.asm +++ b/engine/events/fish.asm @@ -11,7 +11,7 @@ Fish: ; 92402 call GetFishGroupIndex ld hl, FishGroups -rept 7 +rept FISHGROUP_DATA_LENGTH add hl, de endr call .Fish