kep-hack/data/events/hidden_item_coords.asm
Llinos Evans 83483f035b 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.
2023-06-27 22:17:07 +01:00

66 lines
3.1 KiB
NASM

MACRO hidden_item
db \1, \3, \2
ENDM
HiddenItemCoords:
; map id, x, y
hidden_item VIRIDIAN_FOREST, 1, 18
hidden_item VIRIDIAN_FOREST, 16, 42
hidden_item MT_MOON_B2F, 18, 12
hidden_item ROUTE_25, 38, 3
hidden_item ROUTE_9, 14, 7
hidden_item SS_ANNE_KITCHEN, 13, 9
hidden_item SS_ANNE_B1F_ROOMS, 3, 1
hidden_item ROUTE_10, 9, 17
hidden_item ROUTE_10, 16, 53
hidden_item ROCKET_HIDEOUT_B1F, 21, 15
hidden_item ROCKET_HIDEOUT_B3F, 27, 17
hidden_item ROCKET_HIDEOUT_B4F, 25, 1
hidden_item POKEMON_TOWER_5F, 4, 12
hidden_item ROUTE_13, 1, 14
hidden_item ROUTE_13, 16, 13
hidden_item POKEMON_MANSION_B1F, 1, 9
hidden_item SAFARI_ZONE_GATE, 10, 1 ; inaccessible
hidden_item SAFARI_ZONE_WEST, 6, 5
hidden_item SILPH_CO_5F, 12, 3
hidden_item SILPH_CO_9F, 2, 15
hidden_item COPYCATS_HOUSE_2F, 1, 1
hidden_item CERULEAN_CAVE_1F, 14, 11
hidden_item CERULEAN_CAVE_B1F, 27, 3
hidden_item POWER_PLANT, 17, 16
hidden_item POWER_PLANT, 12, 1
hidden_item SEAFOAM_ISLANDS_B2F, 15, 15
hidden_item SEAFOAM_ISLANDS_B4F, 25, 17
hidden_item POKEMON_MANSION_1F, 8, 16
hidden_item POKEMON_MANSION_3F, 1, 9
hidden_item ROUTE_23, 9, 44
hidden_item ROUTE_23, 19, 70
hidden_item ROUTE_23, 8, 90
hidden_item VICTORY_ROAD_2F, 5, 2
hidden_item VICTORY_ROAD_2F, 26, 7
hidden_item VIRIDIAN_CITY, 14, 4
hidden_item ROUTE_11, 48, 5
hidden_item ROUTE_12, 2, 63
hidden_item ROUTE_17, 15, 14
hidden_item ROUTE_17, 8, 45
hidden_item ROUTE_17, 17, 72
hidden_item ROUTE_17, 4, 91
hidden_item ROUTE_17, 8, 121
hidden_item UNDERGROUND_PATH_NORTH_SOUTH, 3, 4
hidden_item UNDERGROUND_PATH_NORTH_SOUTH, 4, 34
hidden_item UNDERGROUND_PATH_WEST_EAST, 12, 2
hidden_item UNDERGROUND_PATH_WEST_EAST, 21, 5
hidden_item CELADON_CITY, 48, 15
hidden_item ROUTE_25, 10, 1
hidden_item MT_MOON_B2F, 33, 9
hidden_item SEAFOAM_ISLANDS_B3F, 9, 16
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