Merge branch 'master' into clock
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,32 +1,36 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "asm/macros/battle_script.inc"
|
||||
.include "constants/constants.inc"
|
||||
.include "constants/battle_constants.inc"
|
||||
.include "constants/battle_script_constants.inc"
|
||||
.include "constants/battle_text.inc"
|
||||
|
||||
.section script_data, "aw", %progbits
|
||||
|
||||
.align 2
|
||||
gBattlescriptsForBallThrow:: @ 82DBD08
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD7E
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte gUnknown_082DBD68
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_SafariBallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
.4byte BattleScript_BallThrow
|
||||
|
||||
.align 2
|
||||
gUnknown_082DBD3C:: @ 82DBD3C
|
||||
.4byte gUnknown_082DBE12
|
||||
.4byte gUnknown_082DBE1C
|
||||
.4byte gUnknown_082DBE1C
|
||||
.4byte gUnknown_082DBE4B
|
||||
.4byte gUnknown_082DBE6F
|
||||
.4byte gUnknown_082DBE91
|
||||
.4byte BattleScript_82DBE12
|
||||
.4byte BattleScript_82DBE1C
|
||||
.4byte BattleScript_82DBE1C
|
||||
.4byte BattleScript_82DBE4B
|
||||
.4byte BattleScript_82DBE6F
|
||||
.4byte BattleScript_82DBE91
|
||||
|
||||
.align 2
|
||||
gBattlescriptsForRunningByItem:: @ 82DBD54
|
||||
@@ -34,55 +38,166 @@ gBattlescriptsForRunningByItem:: @ 82DBD54
|
||||
|
||||
.align 2
|
||||
gBattlescriptsForSafariActions:: @ 82DBD58
|
||||
.4byte gUnknown_082DBEBD
|
||||
.4byte gUnknown_082DBEC4
|
||||
.4byte gUnknown_082DBECD
|
||||
.4byte gUnknown_082DBEE3
|
||||
.4byte BattleScript_ActionWatchesCarefully
|
||||
.4byte BattleScript_ActionGetNear
|
||||
.4byte BattleScript_ActionThrowPokeblock
|
||||
.4byte BattleScript_82DBEE3
|
||||
|
||||
gUnknown_082DBD68:: @ 82DBD68
|
||||
.incbin "baserom.gba", 0x2dbd68, 0x16
|
||||
BattleScript_BallThrow::
|
||||
jumpifword COMMON_BITS, gBattleTypeFlags, BATTLE_TYPE_WALLY_TUTORIAL, BattleScript_BallThrowByWally
|
||||
printstring STRINGID_PLAYERUSEDITEM
|
||||
handleballthrow
|
||||
|
||||
gUnknown_082DBD7E:: @ 82DBD7E
|
||||
.incbin "baserom.gba", 0x2dbd7e, 0x6
|
||||
BattleScript_BallThrowByWally::
|
||||
printstring STRINGID_WALLYUSEDITEM
|
||||
handleballthrow
|
||||
|
||||
BattleScript_SuccessBallThrow:: @ 82DBD84
|
||||
.incbin "baserom.gba", 0x2dbd84, 0x46
|
||||
BattleScript_SafariBallThrow::
|
||||
printstring STRINGID_PLAYERUSEDITEM
|
||||
updatestatusicon ATTACKER
|
||||
handleballthrow
|
||||
|
||||
BattleScript_WallyBallThrow:: @ 82DBDCA
|
||||
.incbin "baserom.gba", 0x2dbdca, 0xa
|
||||
BattleScript_SuccessBallThrow::
|
||||
jumpifhalfword EQUAL, gLastUsedItem, ITEM_SAFARI_BALL, BattleScript_82DBD92
|
||||
incrementgamestat 0xB
|
||||
BattleScript_82DBD92::
|
||||
printstring STRINGID_GOTCHAPKMNCAUGHT
|
||||
trysetcaughtmondexflags BattleScript_82DBDA5
|
||||
printstring STRINGID_PKMNDATAADDEDTODEX
|
||||
waitstate
|
||||
setbyte gBattleCommunication, 0x0
|
||||
displaydexinfo
|
||||
BattleScript_82DBDA5::
|
||||
printstring STRINGID_GIVENICKNAMECAPTURED
|
||||
waitstate
|
||||
setbyte gBattleCommunication, 0x0
|
||||
trygivecaughtmonnick BattleScript_82DBDC2
|
||||
givecaughtmon
|
||||
printfromtable gCaughtMonStringIds
|
||||
waitmessage 0x40
|
||||
goto BattleScript_82DBDC3
|
||||
BattleScript_82DBDC2::
|
||||
givecaughtmon
|
||||
BattleScript_82DBDC3::
|
||||
setbyte gBattleOutcome, CAUGHT
|
||||
finishturn
|
||||
|
||||
BattleScript_ShakeBallThrow:: @ 82DBDD4
|
||||
.incbin "baserom.gba", 0x2dbdd4, 0x2e
|
||||
BattleScript_WallyBallThrow::
|
||||
printstring STRINGID_GOTCHAPKMNCAUGHT2
|
||||
setbyte gBattleOutcome, CAUGHT
|
||||
finishturn
|
||||
|
||||
BattleScript_TrainerBallBlock:: @ 82DBE02
|
||||
.incbin "baserom.gba", 0x2dbe02, 0x10
|
||||
BattleScript_ShakeBallThrow::
|
||||
printfromtable gBallEscapeStringIds
|
||||
waitmessage 0x40
|
||||
jumpifword NO_COMMON_BITS, gBattleTypeFlags, BATTLE_TYPE_SAFARI, BattleScript_82DBE01
|
||||
jumpifbyte NOT_EQUAL, gNumSafariBalls, 0x0, BattleScript_82DBE01
|
||||
printstring STRINGID_OUTOFSAFARIBALLS
|
||||
waitmessage 0x40
|
||||
setbyte gBattleOutcome, OUT_OF_BALLS
|
||||
BattleScript_82DBE01::
|
||||
finishaction
|
||||
|
||||
gUnknown_082DBE12:: @ 82DBE12
|
||||
.incbin "baserom.gba", 0x2dbe12, 0xa
|
||||
BattleScript_TrainerBallBlock::
|
||||
waitmessage 0x40
|
||||
printstring STRINGID_TRAINERBLOCKEDBALL
|
||||
waitmessage 0x40
|
||||
printstring STRINGID_DONTBEATHIEF
|
||||
waitmessage 0x40
|
||||
finishaction
|
||||
|
||||
gUnknown_082DBE1C:: @ 82DBE1C
|
||||
.incbin "baserom.gba", 0x2dbe1c, 0x2f
|
||||
BattleScript_82DBE12::
|
||||
setbyte sMOVEEND_STATE, 0xF
|
||||
moveend 0x1, 0x0
|
||||
end
|
||||
|
||||
gUnknown_082DBE4B:: @ 82DBE4B
|
||||
.incbin "baserom.gba", 0x2dbe4b, 0x24
|
||||
BattleScript_82DBE1C::
|
||||
printstring STRINGID_EMPTYSTRING3
|
||||
pause 0x30
|
||||
playse SE_KAIFUKU
|
||||
printstring STRINGID_TRAINER1USEDITEM
|
||||
waitmessage 0x40
|
||||
useitemonopponent
|
||||
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
||||
healthbarupdate ATTACKER
|
||||
datahpupdate ATTACKER
|
||||
printstring STRINGID_PKMNSITEMRESTOREDHEALTH
|
||||
waitmessage 0x40
|
||||
updatestatusicon ATTACKER
|
||||
setbyte sMOVEEND_STATE, 0xF
|
||||
moveend 0x1, 0x0
|
||||
finishaction
|
||||
|
||||
gUnknown_082DBE6F:: @ 82DBE6F
|
||||
.incbin "baserom.gba", 0x2dbe6f, 0x22
|
||||
BattleScript_82DBE4B::
|
||||
printstring STRINGID_EMPTYSTRING3
|
||||
pause 0x30
|
||||
playse SE_KAIFUKU
|
||||
printstring STRINGID_TRAINER1USEDITEM
|
||||
waitmessage 0x40
|
||||
useitemonopponent
|
||||
printfromtable gTrainerItemCuredStatusStringIds
|
||||
waitmessage 0x40
|
||||
updatestatusicon ATTACKER
|
||||
setbyte sMOVEEND_STATE, 0xF
|
||||
moveend 0x1, 0x0
|
||||
finishaction
|
||||
|
||||
gUnknown_082DBE91:: @ 82DBE91
|
||||
.incbin "baserom.gba", 0x2dbe91, 0x22
|
||||
BattleScript_82DBE6F::
|
||||
printstring STRINGID_EMPTYSTRING3
|
||||
pause 0x30
|
||||
playse SE_KAIFUKU
|
||||
printstring STRINGID_TRAINER1USEDITEM
|
||||
waitmessage 0x40
|
||||
useitemonopponent
|
||||
printfromtable gStatUpStringIds
|
||||
waitmessage 0x40
|
||||
setbyte sMOVEEND_STATE, 0xF
|
||||
moveend 0x1, 0x0
|
||||
finishaction
|
||||
|
||||
BattleScript_RunByUsingItem:: @ 82DBEB3
|
||||
.incbin "baserom.gba", 0x2dbeb3, 0xA
|
||||
BattleScript_82DBE91::
|
||||
printstring STRINGID_EMPTYSTRING3
|
||||
pause 0x30
|
||||
playse SE_KAIFUKU
|
||||
printstring STRINGID_TRAINER1USEDITEM
|
||||
waitmessage 0x40
|
||||
useitemonopponent
|
||||
printfromtable gMistUsedStringIds
|
||||
waitmessage 0x40
|
||||
setbyte sMOVEEND_STATE, 0xF
|
||||
moveend 0x1, 0x0
|
||||
finishaction
|
||||
|
||||
gUnknown_082DBEBD:: @ 82DBEBD
|
||||
.incbin "baserom.gba", 0x2dbebd, 0x7
|
||||
BattleScript_RunByUsingItem::
|
||||
playse SE_NIGERU
|
||||
setbyte gBattleOutcome, RAN
|
||||
finishturn
|
||||
|
||||
gUnknown_082DBEC4:: @ 82DBEC4
|
||||
.incbin "baserom.gba", 0x2dbec4, 0x9
|
||||
BattleScript_ActionWatchesCarefully::
|
||||
printstring STRINGID_PKMNWATCHINGCAREFULLY
|
||||
waitmessage 0x40
|
||||
end2
|
||||
|
||||
gUnknown_082DBECD:: @ 82DBECD
|
||||
.incbin "baserom.gba", 0x2dbecd, 0x16
|
||||
BattleScript_ActionGetNear::
|
||||
printfromtable gSafariGetNearStringIds
|
||||
waitmessage 0x40
|
||||
end2
|
||||
|
||||
gUnknown_082DBEE3:: @ 82DBEE3
|
||||
.incbin "baserom.gba", 0x2dbee3, 0x15
|
||||
BattleScript_ActionThrowPokeblock::
|
||||
printstring STRINGID_THREWPOKEBLOCKATPKMN
|
||||
waitmessage 0x40
|
||||
playanimation ATTACKER, ANIM_x4, NULL
|
||||
printfromtable gSafariPokeblockResultStringIds
|
||||
waitmessage 0x40
|
||||
end2
|
||||
|
||||
BattleScript_82DBEE3::
|
||||
printstring STRINGID_RETURNMON
|
||||
waitmessage 0x40
|
||||
returnatktoball
|
||||
waitstate
|
||||
trainerslidein TARGET
|
||||
waitstate
|
||||
printstring STRINGID_YOUTHROWABALLNOWRIGHT
|
||||
waitmessage 0x40
|
||||
end2
|
||||
|
||||
@@ -682,7 +682,7 @@ gMonIcon_Egg:: @ 8D8FC74
|
||||
|
||||
.incbin "baserom.gba", 0xd90074, 0x1524
|
||||
|
||||
gUnknown_08D91598:: @ 8D91598
|
||||
sBlenderCenterGfx:: @ 8D91598
|
||||
.incbin "baserom.gba", 0xd91598, 0x820
|
||||
|
||||
gUnknown_08D91DB8:: @ 8D91DB8
|
||||
|
||||
20
data/link.s
20
data/link.s
@@ -28,15 +28,15 @@ g2BlankTilesGfx:: @ 82ED168
|
||||
.incbin "graphics/interface/blank_1x2.4bpp"
|
||||
|
||||
gUnknown_082ED1A8:: @ 82ED1A8
|
||||
.4byte gUnknown_020228C4
|
||||
.4byte gBlockSendBuffer
|
||||
.4byte 0x000000C8
|
||||
.4byte gUnknown_020228C4
|
||||
.4byte gBlockSendBuffer
|
||||
.4byte 0x000000C8
|
||||
.4byte gUnknown_020228C4
|
||||
.4byte gBlockSendBuffer
|
||||
.4byte 0x00000064
|
||||
.4byte gUnknown_020228C4
|
||||
.4byte gBlockSendBuffer
|
||||
.4byte 0x000000DC
|
||||
.4byte gUnknown_020228C4
|
||||
.4byte gBlockSendBuffer
|
||||
.4byte 0x00000028
|
||||
|
||||
gUnknown_082ED1D0:: @ 82ED1D0
|
||||
@@ -224,15 +224,15 @@ gUnknown_082ED6A5:: @ 82ED6A5
|
||||
|
||||
.align 2
|
||||
gUnknown_082ED6B8:: @ 82ED6B8
|
||||
.4byte gUnknown_020228C4
|
||||
.4byte gBlockSendBuffer
|
||||
.4byte 0x000000c8
|
||||
.4byte gUnknown_020228C4
|
||||
.4byte gBlockSendBuffer
|
||||
.4byte 0x000000c8
|
||||
.4byte gUnknown_020228C4
|
||||
.4byte gBlockSendBuffer
|
||||
.4byte 0x00000064
|
||||
.4byte gUnknown_020228C4
|
||||
.4byte gBlockSendBuffer
|
||||
.4byte 0x000000dc
|
||||
.4byte gUnknown_020228C4
|
||||
.4byte gBlockSendBuffer
|
||||
.4byte 0x00000028
|
||||
|
||||
.align 2
|
||||
|
||||
@@ -290,7 +290,7 @@ LilycoveCity_ContestLobby_EventScript_293CEE:: @ 8293CEE
|
||||
checkitem ITEM_POKEBLOCK_CASE, 1
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
goto_eq LilycoveCity_ContestLobby_EventScript_293D43
|
||||
specialvar VAR_RESULT, sub_8136EF4
|
||||
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
|
||||
compare_var_to_value VAR_RESULT, 65535
|
||||
goto_eq LilycoveCity_ContestLobby_EventScript_293D39
|
||||
specialvar VAR_RESULT, PlayerHasBerries
|
||||
@@ -303,7 +303,7 @@ LilycoveCity_ContestLobby_EventScript_293CEE:: @ 8293CEE
|
||||
LilycoveCity_ContestLobby_EventScript_293D2C:: @ 8293D2C
|
||||
copyvar VAR_0x8004, VAR_0x8009
|
||||
fadescreen 1
|
||||
special sub_807FA80
|
||||
special DoBerryBlending
|
||||
waitstate
|
||||
releaseall
|
||||
end
|
||||
@@ -365,7 +365,7 @@ LilycoveCity_ContestLobby_EventScript_293DC6:: @ 8293DC6
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
goto_eq LilycoveCity_ContestLobby_EventScript_293E14
|
||||
msgbox LilycoveCity_ContestLobby_Text_293237, 4
|
||||
specialvar VAR_RESULT, sub_8136EF4
|
||||
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
|
||||
compare_var_to_value VAR_RESULT, 65535
|
||||
goto_if 5, LilycoveCity_ContestLobby_EventScript_293D91
|
||||
compare_var_to_value VAR_RESULT, 65535
|
||||
@@ -431,7 +431,7 @@ LilycoveCity_ContestLobby_EventScript_293EA3:: @ 8293EA3
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
goto_eq LilycoveCity_ContestLobby_EventScript_293EF1
|
||||
msgbox LilycoveCity_ContestLobby_Text_29354E, 4
|
||||
specialvar VAR_RESULT, sub_8136EF4
|
||||
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
|
||||
compare_var_to_value VAR_RESULT, 65535
|
||||
goto_if 5, LilycoveCity_ContestLobby_EventScript_293E6E
|
||||
compare_var_to_value VAR_RESULT, 65535
|
||||
@@ -470,7 +470,7 @@ LilycoveCity_ContestLobby_EventScript_293F28:: @ 8293F28
|
||||
specialvar VAR_RESULT, PlayerHasBerries
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
goto_eq LilycoveCity_ContestLobby_EventScript_293F1E
|
||||
specialvar VAR_RESULT, sub_8136EF4
|
||||
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
|
||||
compare_var_to_value VAR_RESULT, 65535
|
||||
goto_if 5, LilycoveCity_ContestLobby_EventScript_293F64
|
||||
compare_var_to_value VAR_RESULT, 65535
|
||||
@@ -536,7 +536,7 @@ LilycoveCity_ContestLobby_EventScript_293FF8:: @ 8293FF8
|
||||
checkitem ITEM_POKEBLOCK_CASE, 1
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
goto_eq LilycoveCity_ContestLobby_EventScript_294028
|
||||
specialvar VAR_RESULT, sub_8136EF4
|
||||
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
|
||||
compare_var_to_value VAR_RESULT, 65535
|
||||
goto_eq LilycoveCity_ContestLobby_EventScript_294028
|
||||
dodailyevents
|
||||
@@ -570,7 +570,7 @@ LilycoveCity_ContestLobby_EventScript_294055:: @ 8294055
|
||||
checkitem ITEM_POKEBLOCK_CASE, 1
|
||||
compare_var_to_value VAR_RESULT, 0
|
||||
goto_eq LilycoveCity_ContestLobby_EventScript_29416C
|
||||
specialvar VAR_RESULT, sub_8136EF4
|
||||
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
|
||||
compare_var_to_value VAR_RESULT, 65535
|
||||
goto_if 5, LilycoveCity_ContestLobby_EventScript_294092
|
||||
compare_var_to_value VAR_RESULT, 65535
|
||||
@@ -635,7 +635,7 @@ LilycoveCity_ContestLobby_EventScript_294147:: @ 8294147
|
||||
removeobject 239
|
||||
removeobject 238
|
||||
removeobject 237
|
||||
special sub_807FA80
|
||||
special DoBerryBlending
|
||||
waitstate
|
||||
releaseall
|
||||
end
|
||||
|
||||
@@ -170,8 +170,8 @@ gSpecials:: @ 81DBA64
|
||||
def_special sub_80B086C
|
||||
def_special ChangePokemonNickname
|
||||
def_special sub_81B94B0
|
||||
def_special sub_8136EF4
|
||||
def_special sub_807FA80
|
||||
def_special GetFirstFreePokeblockSlot
|
||||
def_special DoBerryBlending
|
||||
def_special sub_8142BC8
|
||||
def_special sub_813BD60
|
||||
def_special sub_813BCA8
|
||||
|
||||
Reference in New Issue
Block a user