The Great Constant Compression of June 2023

This is a large-scale compression of KEP's current hide/show constants. RBY's works extremely oddly and is limited to 256 entries.

The problem with how RBY's hide/show stuff works, is that even though there are tons of unused constants, you...can't actually remove them. The constant list is tied to the hide/show data entries, so if you replace it with something else, well, now you just have two objects tied to the same constant. If you made the Route 2 item a boss, and someone picked up the item on Route 2, the boss would also disappear, and vice versa. So, we have to get creative.

I have reduced what we have to 248, but I think I miscounted when doing the funny list somewhere in the actual list when making sure the hex stuff is ok. Either that, or there's an error somewhere that Martha will, by some obscene miracle of humanity, discover. Anyway, this was achieved by turning multiple current overworld items into hidden ones, keeping them in the game whilst keeping to that all-important limit.

I also removed the items in Pokemon Tower 4F for this, just needed a little boost. Well, as you can see by the number, I technically didn't, I just miscounted like 20 times. Look, it's 10:11 PM, my stomach is in pain from an insane injection, and I don't even know if that map will come back, cut me some slack. Or add it back. You definitely can.
This commit is contained in:
Llinos Evans 2023-06-27 22:17:07 +01:00
parent 262c862a76
commit 83483f035b
13 changed files with 212 additions and 240 deletions

View file

@ -57,4 +57,9 @@ HiddenItemCoords:
hidden_item VERMILION_CITY, 14, 11
hidden_item CERULEAN_CITY, 15, 8
hidden_item ROUTE_4, 40, 3
hidden_item VERMILION_DOCK, 21, 0 ; Old Sea Map
hidden_item MT_MOON_CRATER, 17, 20 ; Heart Stone
hidden_item MT_MOON_CRATER, 20, 20 ; Poison Stone
hidden_item MT_MOON_CRATER, 20, 17 ; Black Augurite
hidden_item MT_MOON_CRATER, 32, 45 ; Old Amber
db -1 ; end

View file

@ -86,6 +86,8 @@ HiddenObjectMaps:
db CELADON_UNIVERSITY_POKECENTER
db CITRINE_POKECENTER
db BATTLE_TENT
db VERMILION_DOCK
db MT_MOON_CRATER
db -1 ; end
HiddenObjectPointers:
@ -177,6 +179,8 @@ HiddenObjectPointers:
dw CeladonUniversityPokecenterHiddenObjects
dw CitrinePokecenterHiddenObjects
dw BattleTentHiddenObjects
dw VermilionDockHiddenObjects
dw MtMoonCraterHiddenObjects
MACRO hidden_object
db \2 ; y coord
@ -640,3 +644,14 @@ Route4HiddenObjects:
BattleTentHiddenObjects:
hidden_object 9, 16, SPRITE_FACING_UP, OpenPokemonCenterPC
db -1
VermilionDockHiddenObjects:
hidden_object 21, 0, OLD_SEA_MAP, HiddenItems
db -1
MtMoonCraterHiddenObjects:
hidden_object 17, 20, HEART_STONE, HiddenItems
hidden_object 20, 20, POISON_STONE, HiddenItems
hidden_object 20, 17, BLK_AUGURITE, HiddenItems
hidden_object 32, 45, OLD_AMBER, HiddenItems
db -1