1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-11-05 02:59:03 -08:00

more addresses

This commit is contained in:
Connor Olding 2015-03-07 15:53:37 -08:00
parent 2d4d8ddaa0
commit f3bdbd282a

View file

@ -1,4 +1,6 @@
-- version-agnostic addresses -- version-agnostic addresses
A = require "boilerplate"
function merge(t1, t2) function merge(t1, t2)
for k, v in pairs(t1) do for k, v in pairs(t1) do
t2[k] = v t2[k] = v
@ -51,40 +53,89 @@ end
return { return {
link = A(link, 0x4000), link = A(link, 0x4000),
area_mod = AL(0x02, 2), area_mod = AL(0x02, 2), -- TODO: rename to exit_value?
intro_completed = AL(0x05, 1),
cutscene_status = AL(0x0A, 2), cutscene_status = AL(0x0A, 2),
time = AL(0x0C, 2), time = AL(0x0C, 2),
time_speed = AL(0x16, 2), owl_id = AL(0x0E, 2),
day = AL(0x1B, 1), day_night = AL(0x10, 4),
time_speed = AL(0x14, 4),
day = AL(0x18, 4),
day_again = AL(0x1C, 4),
transformation = AL(0x20, 1), transformation = AL(0x20, 1),
zeroth_day = AL(0x23, 1), zeroth_day = AL(0x23, 1), -- TODO: rename to owl_save
ZELDA3 = AL(0x24, 6),
sot_count = AL(0x2A, 2), sot_count = AL(0x2A, 2),
name = AL(0x2C, 8), name = AL(0x2C, 8),
max_hearts = AL(0x34, 2), max_hearts = AL(0x34, 2),
hearts = AL(0x36, 2), hearts = AL(0x36, 2),
magic_1 = AL(0x39, 1), has_magic = AL(0x38, 1), -- ?
magic = AL(0x39, 1),
rupees = AL(0x3A, 2), rupees = AL(0x3A, 2),
magic_2 = AL(0x40, 2), has_normal_magic = AL(0x40, 1),
has_double_magic = AL(0x41, 1),
owls_hit = AL(0x46, 2), owls_hit = AL(0x46, 2),
sword_shield = AL(0x6D, 1), sword_shield = AL(0x6D, 1),
inventory_items = AL(0x70, 24), inventory_items = AL(0x70, 24),
inventory_masks = AL(0x88, 24), inventory_masks = AL(0x88, 24),
inventory_counts = AL(0xA0, 24), inventory_counts = AL(0xA0, 24),
wallet_flags = AL(0xBA, 1), wallet_size = AL(0xBA, 1), -- 0, 16, 32, unused 48
quiver_bag = AL(0xBB, 1), quiver_bag = AL(0xBB, 1),
status_items = AL(0xBD, 3), quest_items = AL(0xBC, 4),
items_wft = AL(0xC0, 1),
items_sht = AL(0xC1, 1),
items_gbt = AL(0xC2, 1),
items_stt = AL(0xC3, 1),
keys_wft = AL(0xCA, 1),
keys_sht = AL(0xCB, 1),
keys_gbt = AL(0xCC, 1),
keys_stt = AL(0xCD, 1),
fairies_wft = AL(0xD4, 1),
fairies_sht = AL(0xD5, 1),
fairies_gbt = AL(0xD6, 1),
fairies_stt = AL(0xD7, 1),
strange_string = AL(0xDE, 6),
scene_flags_save = AL(0x470, 0x960), scene_flags_save = AL(0x470, 0x960),
area_map = AL(0xEB2, 1), --clock_town_map = AL(0xEB2, 1),
banked_rupees = AL(0xEDE, 2), banked_rupees = AL(0xEDE, 2),
archery = AL(0xF00, 1), archery = AL(0xF00, 1),
chateau_romani = AL(0xF06, 1), chateau_romani = AL(0xF06, 1), -- 8
disable_c_buttons = AL(0xF4A, 1), disable_c_buttons = AL(0xF4A, 1), -- 8
sword_disable_c = AL(0xF52, 1), sword_disable_c = AL(0xF52, 1), -- 32
map_visited = AL(0xF5E, 2), map_visited = AL(0xF5E, 2),
map_visible = AL(0xF62, 2), map_visible = AL(0xF62, 2),
bombers_caught = AL(0xFE6, 1),
bombers_order_1 = AL(0xFE7, 1),
bombers_order_2 = AL(0xFE8, 1),
bombers_order_3 = AL(0xFE9, 1),
bombers_order_4 = AL(0xFEA, 1),
bombers_order_5 = AL(0xFEB, 1),
lottery_code_1 = AL(0xFEC, 3),
lottery_code_2 = AL(0xFEF, 3),
lottery_code_3 = AL(0xFF2, 3),
spider_mask_color_1 = AL(0xFF5, 1), -- 0: red; 1: blue; 2: green; 3: yellow
spider_mask_color_2 = AL(0xFF6, 1),
spider_mask_color_3 = AL(0xFF7, 1),
spider_mask_color_4 = AL(0xFF8, 1),
spider_mask_color_5 = AL(0xFF9, 1),
bombers_code_1 = AL(0xFFB, 1),
bombers_code_2 = AL(0xFFC, 1),
bombers_code_3 = AL(0xFFD, 1),
bombers_code_4 = AL(0xFFE, 1),
bombers_code_5 = AL(0xFFF, 1),
inventory = { inventory = {
b_button = AL(0x4C, 1), b_button = AL(0x4C, 1),
c_left_item = AL(0x4D, 1),
c_down_item = AL(0x4E, 1),
c_right_item = AL(0x4F, 1),
b_button_goron = AL(0x50, 1),
b_button_zora = AL(0x54, 1),
b_button_deku = AL(0x58, 1),
b_button_slot = AL(0x5C, 1), -- unused?
c_left_slot = AL(0x5D, 1),
c_down_slot = AL(0x5E, 1),
c_right_slot = AL(0x5F, 1),
ocarina = AL(0x70, 1), ocarina = AL(0x70, 1),
bow = AL(0x71, 1), bow = AL(0x71, 1),