aboutsummaryrefslogtreecommitdiffstats
path: root/engine/link
diff options
context:
space:
mode:
authorvulcandth <vulcandth@gmail.com>2022-07-04 00:08:19 -0500
committerGitHub <noreply@github.com>2022-07-04 01:08:19 -0400
commit69e9d359e53b0fac29336eb6fedb98a520745276 (patch)
tree924fe9fba2042e1f1659001b54b71e72492cb3f3 /engine/link
parentUse backwards-compatible EQU syntax for rgbdscheck.asm (diff)
downloadpokeyellow-69e9d359e53b0fac29336eb6fedb98a520745276.tar.gz
pokeyellow-69e9d359e53b0fac29336eb6fedb98a520745276.tar.xz
pokeyellow-69e9d359e53b0fac29336eb6fedb98a520745276.zip
party_struct constants and ExchangeBytes size (#91)
Co-Authored-By: Rangi <35663410+Rangi42@users.noreply.github.com>
Diffstat (limited to 'engine/link')
-rw-r--r--engine/link/cable_club.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/link/cable_club.asm b/engine/link/cable_club.asm
index b5fab2ea..32acfb3d 100644
--- a/engine/link/cable_club.asm
+++ b/engine/link/cable_club.asm
@@ -123,20 +123,20 @@ CableClub_DoBattleOrTradeAgain:
ldh [rIE], a
ld hl, wSerialRandomNumberListBlock
ld de, wSerialOtherGameboyRandomNumberListBlock
- ld bc, $11
+ ld bc, SERIAL_RN_PREAMBLE_LENGTH + SERIAL_RNS_LENGTH
call Serial_ExchangeBytes
ld a, SERIAL_NO_DATA_BYTE
ld [de], a
ld hl, wSerialPlayerDataBlock
ld de, wSerialEnemyDataBlock
- ld bc, $1a8
+ ld bc, SERIAL_PREAMBLE_LENGTH + NAME_LENGTH + 1 + PARTY_LENGTH + 1 + (PARTYMON_STRUCT_LENGTH + NAME_LENGTH * 2) * PARTY_LENGTH + 3
vc_hook Wireless_ExchangeBytes_party_structs
call Serial_ExchangeBytes
ld a, SERIAL_NO_DATA_BYTE
ld [de], a
ld hl, wSerialPartyMonsPatchList
ld de, wSerialEnemyMonsPatchList
- ld bc, $c8
+ ld bc, 200
vc_hook Wireless_ExchangeBytes_patch_lists
call Serial_ExchangeBytes
ld a, (1 << SERIAL) | (1 << TIMER) | (1 << VBLANK)