VC ExchangeBytes Aliases

Co-Authored-By: aaaaaa123456789 <aaaaaa123456789@acidch.at>
This commit is contained in:
vulcandth 2022-06-19 21:28:39 -05:00 committed by mid-kid
parent 4125138da7
commit 1853f70add
2 changed files with 14 additions and 14 deletions

View File

@ -83,7 +83,7 @@ endc
ld hl, wLinkBattleRNPreamble
ld de, wEnemyMon
ld bc, SERIAL_RN_PREAMBLE_LENGTH + SERIAL_RNS_LENGTH
vc_hook Wireless_ExchangeBytes_1
vc_hook Wireless_ExchangeBytes_Gen2toGen1_RNG_state
call Serial_ExchangeBytes
ld a, SERIAL_NO_DATA_BYTE
ld [de], a
@ -91,7 +91,7 @@ endc
ld hl, wLinkData
ld de, wOTPartyData
ld bc, SERIAL_PREAMBLE_LENGTH + NAME_LENGTH + 1 + PARTY_LENGTH + 1 + (REDMON_STRUCT_LENGTH + NAME_LENGTH * 2) * PARTY_LENGTH + 3
vc_hook Wireless_ExchangeBytes_2
vc_hook Wireless_ExchangeBytes_Gen2toGen1_party_structs
call Serial_ExchangeBytes
ld a, SERIAL_NO_DATA_BYTE
ld [de], a
@ -99,7 +99,7 @@ endc
ld hl, wPlayerPatchLists
ld de, wOTPatchLists
ld bc, 200
vc_hook Wireless_ExchangeBytes_3_Gen2toGen1Fix
vc_hook Wireless_ExchangeBytes_Gen2toGen1_patch_lists
call Serial_ExchangeBytes
xor a
@ -249,7 +249,7 @@ endc
ld hl, wLinkBattleRNPreamble
ld de, wEnemyMon
ld bc, SERIAL_RN_PREAMBLE_LENGTH + SERIAL_RNS_LENGTH
vc_hook Wireless_ExchangeBytes_4
vc_hook Wireless_ExchangeBytes_RNG_state
call Serial_ExchangeBytes
ld a, SERIAL_NO_DATA_BYTE
ld [de], a
@ -257,7 +257,7 @@ endc
ld hl, wLinkData
ld de, wOTPartyData
ld bc, SERIAL_PREAMBLE_LENGTH + NAME_LENGTH + 1 + PARTY_LENGTH + 1 + 2 + (PARTYMON_STRUCT_LENGTH + NAME_LENGTH * 2) * PARTY_LENGTH + 3
vc_hook Wireless_ExchangeBytes_5
vc_hook Wireless_ExchangeBytes_party_structs
call Serial_ExchangeBytes
ld a, SERIAL_NO_DATA_BYTE
ld [de], a
@ -265,7 +265,7 @@ endc
ld hl, wPlayerPatchLists
ld de, wOTPatchLists
ld bc, 200
vc_hook Wireless_ExchangeBytes_6
vc_hook Wireless_ExchangeBytes_patch_lists
call Serial_ExchangeBytes
ld a, [wLinkMode]
@ -274,7 +274,7 @@ endc
ld hl, wLinkPlayerMail
ld de, wLinkOTMail
ld bc, wLinkPlayerMailEnd - wLinkPlayerMail
vc_hook Wireless_ExchangeBytes_7
vc_hook Wireless_ExchangeBytes_mail
call ExchangeBytes
.not_trading

View File

@ -46,38 +46,38 @@ Mode = 2
Address = {HEX @ 4}
Type = 30
[Network358@Wireless_ExchangeBytes_1]
[Network358@Wireless_ExchangeBytes_Gen2toGen1_RNG_state]
Mode = 2
Address = {HEX @}
Type = 4
[Network359@Wireless_ExchangeBytes_2]
[Network359@Wireless_ExchangeBytes_Gen2toGen1_party_structs]
Mode = 2
Address = {HEX @}
Type = 4
[Network364@Wireless_ExchangeBytes_3_Gen2toGen1Fix]
[Network364@Wireless_ExchangeBytes_Gen2toGen1_patch_lists]
Mode = 2
Address = {HEX @}
;fix pokemon ?? in name
Type = 26
[Network360@Wireless_ExchangeBytes_4]
[Network360@Wireless_ExchangeBytes_RNG_state]
Mode = 2
Address = {HEX @}
Type = 4
[Network361@Wireless_ExchangeBytes_5]
[Network361@Wireless_ExchangeBytes_party_structs]
Mode = 2
Address = {HEX @}
Type = 4
[Network362@Wireless_ExchangeBytes_6]
[Network362@Wireless_ExchangeBytes_patch_lists]
Mode = 2
Address = {HEX @}
Type = 4
[Network363@Wireless_ExchangeBytes_7]
[Network363@Wireless_ExchangeBytes_mail]
Mode = 2
Address = {HEX @}
Type = 4