SM: remove events from data package (#973)

This commit is contained in:
lordlou
2022-08-31 00:14:17 -04:00
committed by GitHub
parent fcfc2c2e10
commit 8da1cfeeb7
4 changed files with 11 additions and 40 deletions

View File

@@ -1196,7 +1196,7 @@ async def game_watcher(ctx: Context):
snes_buffered_write(ctx, SM_SEND_QUEUE_RCOUNT,
bytes([recv_index & 0xFF, (recv_index >> 8) & 0xFF]))
from worlds.sm.Locations import locations_start_id
from worlds.sm import locations_start_id
location_id = locations_start_id + itemIndex
ctx.locations_checked.add(location_id)
@@ -1211,8 +1211,8 @@ async def game_watcher(ctx: Context):
itemOutPtr = data[0] | (data[1] << 8)
from worlds.sm.Items import items_start_id
from worlds.sm.Locations import locations_start_id
from worlds.sm import items_start_id
from worlds.sm import locations_start_id
if itemOutPtr < len(ctx.items_received):
item = ctx.items_received[itemOutPtr]
itemId = item.item - items_start_id