Skip to content

Commit 5553e7d

Browse files
committed
Set by megmac via discord-- adds boss kills, key syncing to tloz_all mode
1 parent 9e40f96 commit 5553e7d

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

modes/tloz_all.lua

+15-9
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ for base_key, base_val in pairs(base_spec.sync) do
2424
spec.sync[base_key] = base_val
2525
end
2626

27+
spec.sync[0x066E] = {kind="delta", deltaMin=0} --keys
2728
spec.sync[0x066F] = {kind="high", mask=0xf0} -- hearts: high nibble is heart containers-1, low nibble is number of filled hearts-1
2829

2930
-- ow map open/get data is between 0x067f and 0x6fe (top left to bottom right)
@@ -40,16 +41,21 @@ end
4041
-- dungeon map data is between 0x6ff and 0x7fe (top left to bottom right, all
4142
-- the dungeons are in a single 2d array with each other)
4243
-- each tile has the following attributes that could be synced:
43-
-- 0x80 some enemies killed in room
44-
-- 0x40 all enemies killed in room
45-
-- 0x20 room visited (shows up on map)
46-
-- 0x10 item collected
47-
-- 0x08 top key door unlocked
48-
-- 0x04 bottom key door unlocked
49-
-- 0x02 left key door unlocked
50-
-- 0x01 right key door unlocked
44+
-- 0x80 some enemies killed in room
45+
-- 0x40 all enemies killed in room
46+
-- 0x20 room visited (shows up on map)
47+
-- 0x10 item collected
48+
-- 0x08 top key door unlocked
49+
-- 0x04 bottom key door unlocked
50+
-- 0x02 left key door unlocked
51+
-- 0x01 right key door unlocked
52+
-- Note that for the enemy kill info, this seems to be used as a cache for the
53+
-- 6 room memory, as well as boss kill information. If you kill everything in
54+
-- a room, the next time you visit that room without it being in the memory, it
55+
-- will erase the bits unless the room has a boss in it, in which case it will
56+
-- leave them alone and keep the boss killed.
5157
for i = 0x06ff, 0x07fe do
52-
spec.sync[i] = {kind="bitOr", mask=0x3f} -- all but enemy kills? Play around with different masks maybe.
58+
spec.sync[i] = {kind="bitOr"} -- including enemy kill data allows boss kills. Doesn't affect normal rooms.
5359
end
5460

5561
return spec

0 commit comments

Comments
 (0)