LttPClient: fix missed ROM_PLAYER_LIMIT
This commit is contained in:
parent
050927008a
commit
6e25af9493
|
@ -866,14 +866,19 @@ async def game_watcher(ctx: Context):
|
||||||
color(ctx.item_name_getter(item.item), 'red', 'bold'), color(ctx.player_names[item.player], 'yellow'),
|
color(ctx.item_name_getter(item.item), 'red', 'bold'), color(ctx.player_names[item.player], 'yellow'),
|
||||||
ctx.location_name_getter(item.location), recv_index, len(ctx.items_received)))
|
ctx.location_name_getter(item.location), recv_index, len(ctx.items_received)))
|
||||||
|
|
||||||
snes_buffered_write(ctx, RECV_PROGRESS_ADDR, bytes([recv_index & 0xFF, (recv_index >> 8) & 0xFF]))
|
snes_buffered_write(ctx, RECV_PROGRESS_ADDR,
|
||||||
snes_buffered_write(ctx, RECV_ITEM_ADDR, bytes([item.item]))
|
bytes([recv_index & 0xFF, (recv_index >> 8) & 0xFF]))
|
||||||
|
snes_buffered_write(ctx, RECV_ITEM_ADDR,
|
||||||
|
bytes([item.item]))
|
||||||
snes_buffered_write(ctx, RECV_ITEM_PLAYER_ADDR,
|
snes_buffered_write(ctx, RECV_ITEM_PLAYER_ADDR,
|
||||||
bytes([min(ROM_PLAYER_LIMIT, item.player) if item.player != ctx.slot else 0]))
|
bytes([min(ROM_PLAYER_LIMIT, item.player) if item.player != ctx.slot else 0]))
|
||||||
if scout_location > 0 and scout_location in ctx.locations_info:
|
if scout_location > 0 and scout_location in ctx.locations_info:
|
||||||
snes_buffered_write(ctx, SCOUTREPLY_LOCATION_ADDR, bytes([scout_location]))
|
snes_buffered_write(ctx, SCOUTREPLY_LOCATION_ADDR,
|
||||||
snes_buffered_write(ctx, SCOUTREPLY_ITEM_ADDR, bytes([ctx.locations_info[scout_location][0]]))
|
bytes([scout_location]))
|
||||||
snes_buffered_write(ctx, SCOUTREPLY_PLAYER_ADDR, bytes([ctx.locations_info[scout_location][1]]))
|
snes_buffered_write(ctx, SCOUTREPLY_ITEM_ADDR,
|
||||||
|
bytes([ctx.locations_info[scout_location][0]]))
|
||||||
|
snes_buffered_write(ctx, SCOUTREPLY_PLAYER_ADDR,
|
||||||
|
bytes([min(ROM_PLAYER_LIMIT, ctx.locations_info[scout_location][1])]))
|
||||||
|
|
||||||
await snes_flush_writes(ctx)
|
await snes_flush_writes(ctx)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue