Harmonize engine/{battle, battle_anims, events, games} with pokegold

This commit is contained in:
Rangi 2020-06-16 19:32:36 -04:00
parent c552390a15
commit f76dabedcc
13 changed files with 97 additions and 85 deletions

View File

@ -55,7 +55,7 @@ DoBattleTransition:
ldh [hLYOverrideEnd], a ldh [hLYOverrideEnd], a
ldh [hSCY], a ldh [hSCY], a
ld a, 1 ; unnecessary bankswitch? ld a, $1 ; unnecessary bankswitch?
ldh [rSVBK], a ldh [rSVBK], a
pop af pop af
ldh [hVBlank], a ldh [hVBlank], a
@ -313,7 +313,6 @@ StartTrainerBattle_SetUpForWavyOutro:
farcall Function5602 farcall Function5602
ld a, BANK(wLYOverrides) ld a, BANK(wLYOverrides)
ldh [rSVBK], a ldh [rSVBK], a
call StartTrainerBattle_NextScene call StartTrainerBattle_NextScene
ld a, LOW(rSCX) ld a, LOW(rSCX)
@ -349,7 +348,7 @@ StartTrainerBattle_SineWave:
ld [hl], a ld [hl], a
ld a, wLYOverridesEnd - wLYOverrides ld a, wLYOverridesEnd - wLYOverrides
ld bc, wLYOverrides ld bc, wLYOverrides
ld e, $0 ld e, 0
.loop .loop
push af push af
@ -360,7 +359,7 @@ StartTrainerBattle_SineWave:
inc bc inc bc
pop de pop de
ld a, e ld a, e
add $2 add 2
ld e, a ld e, a
pop af pop af
dec a dec a
@ -391,7 +390,7 @@ endr
jr z, .end jr z, .end
ld [wcf65], a ld [wcf65], a
call .load call .load
ld a, $1 ld a, 1
ldh [hBGMapMode], a ldh [hBGMapMode], a
call DelayFrame call DelayFrame
call DelayFrame call DelayFrame
@ -400,7 +399,7 @@ endr
ret ret
.end .end
ld a, $1 ld a, 1
ldh [hBGMapMode], a ldh [hBGMapMode], a
call DelayFrame call DelayFrame
call DelayFrame call DelayFrame
@ -516,7 +515,7 @@ StartTrainerBattle_SetUpForRandomScatterOutro:
call StartTrainerBattle_NextScene call StartTrainerBattle_NextScene
ld a, $10 ld a, $10
ld [wcf64], a ld [wcf64], a
ld a, $1 ld a, 1
ldh [hBGMapMode], a ldh [hBGMapMode], a
ret ret
@ -585,35 +584,36 @@ StartTrainerBattle_LoadPokeBallGraphics:
xor a xor a
ldh [hBGMapMode], a ldh [hBGMapMode], a
hlcoord 0, 0, wAttrmap hlcoord 0, 0, wAttrmap
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
inc b inc b
inc c inc c
jr .enter_loop_midway jr .enter_loop_midway
.loop .pal_loop
; set all pals to 7 ; set all pals to 7
ld a, [hl] ld a, [hl]
or %00000111 or PAL_BG_TEXT
ld [hli], a ld [hli], a
.enter_loop_midway .enter_loop_midway
dec c dec c
jr nz, .loop jr nz, .pal_loop
dec b dec b
jr nz, .loop jr nz, .pal_loop
call .loadpokeballgfx call .loadpokeballgfx
hlcoord 2, 1 hlcoord 2, 1
ld b, SCREEN_WIDTH - 4 ld b, SCREEN_WIDTH - 4
.loop2 .tile_loop
push hl push hl
ld c, 2 ld c, 2
.loop3 .row_loop
push hl push hl
ld a, [de] ld a, [de]
inc de inc de
.loop4 .col_loop
; Loading is done bit by bit ; Loading is done bit by bit
and a and a
jr z, .done jr z, .done
@ -622,7 +622,7 @@ StartTrainerBattle_LoadPokeBallGraphics:
ld [hl], BATTLETRANSITION_SQUARE ld [hl], BATTLETRANSITION_SQUARE
.no_load .no_load
inc hl inc hl
jr .loop4 jr .col_loop
.done .done
pop hl pop hl
@ -631,7 +631,7 @@ StartTrainerBattle_LoadPokeBallGraphics:
add hl, bc add hl, bc
pop bc pop bc
dec c dec c
jr nz, .loop3 jr nz, .row_loop
pop hl pop hl
push bc push bc
@ -639,12 +639,12 @@ StartTrainerBattle_LoadPokeBallGraphics:
add hl, bc add hl, bc
pop bc pop bc
dec b dec b
jr nz, .loop2 jr nz, .tile_loop
ldh a, [hCGB] ldh a, [hCGB]
and a and a
jr nz, .cgb jr nz, .cgb
ld a, $1 ld a, 1
ldh [hBGMapMode], a ldh [hBGMapMode], a
call DelayFrame call DelayFrame
call DelayFrame call DelayFrame
@ -673,7 +673,7 @@ StartTrainerBattle_LoadPokeBallGraphics:
call CopyBytes call CopyBytes
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ld a, $1 ld a, 1
ldh [hCGBPalUpdate], a ldh [hCGBPalUpdate], a
call DelayFrame call DelayFrame
call BattleStart_CopyTilemapAtOnce call BattleStart_CopyTilemapAtOnce
@ -827,7 +827,7 @@ ENDM
ret ret
Unreferenced_Function8c7c9: Unreferenced_Function8c7c9:
ld a, $1 ld a, 1
ldh [hBGMapMode], a ldh [hBGMapMode], a
call WaitBGMap call WaitBGMap
xor a xor a

View File

@ -1963,14 +1963,14 @@ RestoreHP:
ld b, a ld b, a
ld a, [hl] ld a, [hl]
sbc b sbc b
jr c, .asm_3cd2d jr c, .overflow
ld a, b ld a, b
ld [hli], a ld [hli], a
ld [wBuffer6], a ld [wBuffer6], a
ld a, c ld a, c
ld [hl], a ld [hl], a
ld [wBuffer5], a ld [wBuffer5], a
.asm_3cd2d .overflow
call SwitchTurnCore call SwitchTurnCore
call UpdateHPBarBattleHuds call UpdateHPBarBattleHuds
@ -5958,7 +5958,7 @@ LoadEnemyMon:
jp nz, InitEnemyMon jp nz, InitEnemyMon
; and also not in a BattleTower-Battle ; and also not in a BattleTower-Battle
ld a, [wInBattleTowerBattle] ; ???? ld a, [wInBattleTowerBattle]
bit 0, a bit 0, a
jp nz, InitEnemyMon jp nz, InitEnemyMon
@ -7764,7 +7764,6 @@ GoodComeBackText:
text_end text_end
Unreferenced_TextJump_ComeBack: Unreferenced_TextJump_ComeBack:
; this function doesn't seem to be used
ld hl, ComeBackText ld hl, ComeBackText
ret ret
@ -8127,8 +8126,8 @@ InitEnemyTrainer:
jr nz, .ok jr nz, .ok
xor a xor a
ld [wOTPartyMon1Item], a ld [wOTPartyMon1Item], a
.ok
.ok
ld de, vTiles2 ld de, vTiles2
callfar GetTrainerPic callfar GetTrainerPic
xor a xor a
@ -8374,21 +8373,21 @@ DisplayLinkBattleResult:
ld a, [wBattleResult] ld a, [wBattleResult]
and $f and $f
cp LOSE cp LOSE
jr c, .victory ; WIN jr c, .win ; WIN
jr z, .loss ; LOSE jr z, .lose ; LOSE
; DRAW ; DRAW
farcall StubbedTrainerRankings_ColosseumDraws farcall StubbedTrainerRankings_ColosseumDraws
ld de, .Draw ld de, .Draw
jr .store_result jr .store_result
.victory .win
farcall StubbedTrainerRankings_ColosseumWins farcall StubbedTrainerRankings_ColosseumWins
ld de, .Win ld de, .YouWin
jr .store_result jr .store_result
.loss .lose
farcall StubbedTrainerRankings_ColosseumLosses farcall StubbedTrainerRankings_ColosseumLosses
ld de, .Lose ld de, .YouLose
jr .store_result jr .store_result
.store_result .store_result
@ -8418,23 +8417,23 @@ DisplayLinkBattleResult:
call ClearTilemap call ClearTilemap
ret ret
.Win: .YouWin:
db "YOU WIN@" db "YOU WIN@"
.Lose: .YouLose:
db "YOU LOSE@" db "YOU LOSE@"
.Draw: .Draw:
db " DRAW@" db " DRAW@"
.Mobile_InvalidBattle: .Mobile_InvalidBattle:
hlcoord 6, 8 hlcoord 6, 8
ld de, .Invalid ld de, .InvalidBattle
call PlaceString call PlaceString
ld c, 200 ld c, 200
call DelayFrames call DelayFrames
call ClearTilemap call ClearTilemap
ret ret
.Invalid: .InvalidBattle:
db "INVALID BATTLE@" db "INVALID BATTLE@"
IsMobileBattle2: IsMobileBattle2:
@ -9013,7 +9012,7 @@ CopyBackpic:
ld de, vTiles2 tile $31 ld de, vTiles2 tile $31
ldh a, [hROMBank] ldh a, [hROMBank]
ld b, a ld b, a
ld c, $31 ld c, 7 * 7
call Get2bpp call Get2bpp
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a

View File

@ -5079,7 +5079,7 @@ BattleCommand_ForceSwitch:
call UpdateBattleMonInParty call UpdateBattleMonInParty
xor a xor a
ld [wNumHits], a ld [wNumHits], a
inc a inc a ; TRUE
ld [wForcedSwitch], a ld [wForcedSwitch], a
call SetBattleDraw call SetBattleDraw
ld a, [wPlayerMoveStructAnimation] ld a, [wPlayerMoveStructAnimation]
@ -5172,7 +5172,7 @@ BattleCommand_ForceSwitch:
call UpdateBattleMonInParty call UpdateBattleMonInParty
xor a xor a
ld [wNumHits], a ld [wNumHits], a
inc a inc a ; TRUE
ld [wForcedSwitch], a ld [wForcedSwitch], a
call SetBattleDraw call SetBattleDraw
ld a, [wEnemyMoveStructAnimation] ld a, [wEnemyMoveStructAnimation]

View File

@ -380,8 +380,7 @@ CopyTrainerName:
pop de pop de
ret ret
Function39990: Unreferenced_Function39990:
; This function is useless.
ld de, wStringBuffer1 ld de, wStringBuffer1
push de push de
ld bc, NAME_LENGTH ld bc, NAME_LENGTH

View File

@ -41,7 +41,7 @@ _PlayBattleAnim:
pop af pop af
ldh [hVBlank], a ldh [hVBlank], a
ld a, $1 ld a, 1
ldh [hBGMapMode], a ldh [hBGMapMode], a
call BattleAnimDelayFrame call BattleAnimDelayFrame
@ -155,9 +155,10 @@ BattleAnimRestoreHuds:
ld a, BANK(wCurBattleMon) ; aka BANK(wTempMon), BANK(wPartyMon1), and several others ld a, BANK(wCurBattleMon) ; aka BANK(wTempMon), BANK(wPartyMon1), and several others
ldh [rSVBK], a ldh [rSVBK], a
; this block should just be "call UpdateBattleHuds"
ld hl, UpdateBattleHuds ld hl, UpdateBattleHuds
ld a, BANK(UpdatePlayerHUD) ld a, BANK(UpdatePlayerHUD)
rst FarCall ; Why not "call UpdateBattleHuds"? rst FarCall
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
@ -891,32 +892,34 @@ BattleAnimCmd_Transform:
push af push af
ld a, BANK(wCurPartySpecies) ld a, BANK(wCurPartySpecies)
ldh [rSVBK], a ldh [rSVBK], a
ld a, [wCurPartySpecies] ; CurPartySpecies
ld a, [wCurPartySpecies]
push af push af
ldh a, [hBattleTurn] ldh a, [hBattleTurn]
and a and a
jr z, .player jr z, .player
ld a, [wTempBattleMonSpecies] ; TempBattleMonSpecies ld a, [wTempBattleMonSpecies]
ld [wCurPartySpecies], a ; CurPartySpecies ld [wCurPartySpecies], a
ld hl, wBattleMonDVs ; BattleMonDVs ld hl, wBattleMonDVs
predef GetUnownLetter predef GetUnownLetter
ld de, vTiles0 tile $00 ld de, vTiles0 tile $00
predef GetMonFrontpic predef GetMonFrontpic
jr .done jr .done
.player .player
ld a, [wTempEnemyMonSpecies] ; TempEnemyMonSpecies ld a, [wTempEnemyMonSpecies]
ld [wCurPartySpecies], a ; CurPartySpecies ld [wCurPartySpecies], a
ld hl, wEnemyMonDVs ; EnemyMonDVs ld hl, wEnemyMonDVs
predef GetUnownLetter predef GetUnownLetter
ld de, vTiles0 tile $00 ld de, vTiles0 tile $00
predef GetMonBackpic predef GetMonBackpic
.done .done
pop af pop af
ld [wCurPartySpecies], a ; CurPartySpecies ld [wCurPartySpecies], a
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ret ret
@ -945,11 +948,11 @@ BattleAnimCmd_RaiseSub:
push af push af
ld a, 1 ; unnecessary bankswitch? ld a, 1 ; unnecessary bankswitch?
ldh [rSVBK], a ldh [rSVBK], a
xor a ; sScratch
xor a ; BANK(sScratch)
call GetSRAMBank call GetSRAMBank
GetSubstitutePic: ; used only for BANK(GetSubstitutePic) GetSubstitutePic: ; used only for BANK(GetSubstitutePic)
ld hl, sScratch ld hl, sScratch
ld bc, (7 * 7) tiles ld bc, (7 * 7) tiles
.loop .loop
@ -1004,6 +1007,7 @@ GetSubstitutePic: ; used only for BANK(GetSubstitutePic)
.done .done
call CloseSRAM call CloseSRAM
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ret ret
@ -1019,11 +1023,13 @@ BattleAnimCmd_MinimizeOpp:
push af push af
ld a, 1 ; unnecessary bankswitch? ld a, 1 ; unnecessary bankswitch?
ldh [rSVBK], a ldh [rSVBK], a
xor a ; sScratch
xor a ; BANK(sScratch)
call GetSRAMBank call GetSRAMBank
call GetMinimizePic call GetMinimizePic
call Request2bpp call Request2bpp
call CloseSRAM call CloseSRAM
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ret ret
@ -1073,12 +1079,14 @@ BattleAnimCmd_Minimize:
push af push af
ld a, 1 ; unnecessary bankswitch? ld a, 1 ; unnecessary bankswitch?
ldh [rSVBK], a ldh [rSVBK], a
xor a ; sScratch
xor a ; BANK(sScratch)
call GetSRAMBank call GetSRAMBank
call GetMinimizePic call GetMinimizePic
ld hl, vTiles0 tile $00 ld hl, vTiles0 tile $00
call Request2bpp call Request2bpp
call CloseSRAM call CloseSRAM
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ret ret
@ -1089,7 +1097,7 @@ BattleAnimCmd_DropSub:
ld a, BANK(wCurPartySpecies) ld a, BANK(wCurPartySpecies)
ldh [rSVBK], a ldh [rSVBK], a
ld a, [wCurPartySpecies] ; CurPartySpecies ld a, [wCurPartySpecies]
push af push af
ldh a, [hBattleTurn] ldh a, [hBattleTurn]
and a and a
@ -1103,7 +1111,8 @@ BattleAnimCmd_DropSub:
.done .done
pop af pop af
ld [wCurPartySpecies], a ; CurPartySpecies ld [wCurPartySpecies], a
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ret ret
@ -1113,11 +1122,12 @@ BattleAnimCmd_BeatUp:
push af push af
ld a, BANK(wCurPartySpecies) ld a, BANK(wCurPartySpecies)
ldh [rSVBK], a ldh [rSVBK], a
ld a, [wCurPartySpecies] ; CurPartySpecies
ld a, [wCurPartySpecies]
push af push af
ld a, [wBattleAnimParam] ld a, [wBattleAnimParam]
ld [wCurPartySpecies], a ; CurPartySpecies ld [wCurPartySpecies], a
ldh a, [hBattleTurn] ldh a, [hBattleTurn]
and a and a
@ -1137,9 +1147,10 @@ BattleAnimCmd_BeatUp:
.done .done
pop af pop af
ld [wCurPartySpecies], a ; CurPartySpecies ld [wCurPartySpecies], a
ld b, SCGB_BATTLE_COLORS ld b, SCGB_BATTLE_COLORS
call GetSGBLayout call GetSGBLayout
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ret ret
@ -1176,7 +1187,7 @@ BattleAnimCmd_Sound:
ld [wSFXDuration], a ld [wSFXDuration], a
call .GetCryTrack call .GetCryTrack
maskbits NUM_NOISE_CHANS maskbits NUM_NOISE_CHANS
ld [wCryTracks], a ; CryTracks ld [wCryTracks], a
ld e, a ld e, a
ld d, 0 ld d, 0
@ -1220,7 +1231,7 @@ endr
ldh a, [rSVBK] ldh a, [rSVBK]
push af push af
ld a, BANK(wEnemyMon) ; wBattleMon is in WRAM0, but EnemyMon is in WRAMX ld a, BANK(wEnemyMon) ; wBattleMon is in WRAM0, but wEnemyMon is in WRAMX
ldh [rSVBK], a ldh [rSVBK], a
ldh a, [hBattleTurn] ldh a, [hBattleTurn]
@ -1263,14 +1274,14 @@ endr
ld a, [hli] ld a, [hli]
ld c, a ld c, a
ld b, [hl] ld b, [hl]
ld hl, wCryLength ; CryLength ld hl, wCryLength
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a
add hl, bc add hl, bc
ld a, l ld a, l
ld [wCryLength], a ; CryLength ld [wCryLength], a
ld a, h ld a, h
ld [wCryLength + 1], a ld [wCryLength + 1], a
ld a, 1 ld a, 1
@ -1347,7 +1358,7 @@ ClearBattleAnims::
ld hl, wLYOverrides ld hl, wLYOverrides
ld bc, wBattleAnimEnd - wLYOverrides ld bc, wBattleAnimEnd - wLYOverrides
.loop .loop
ld [hl], $0 ld [hl], 0
inc hl inc hl
dec bc dec bc
ld a, c ld a, c

View File

@ -2839,7 +2839,8 @@ BGEffect_FillLYOverridesBackup:
ret ret
BGEffect_DisplaceLYOverridesBackup: BGEffect_DisplaceLYOverridesBackup:
; e = a; d = [hLYOverrideEnd] - [hLYOverrideStart] - a ; e = a
; d = [hLYOverrideEnd] - [hLYOverrideStart] - a
push af push af
ld e, a ld e, a
ldh a, [hLYOverrideStart] ldh a, [hLYOverrideStart]

View File

@ -1,9 +1,9 @@
; PrintDayCareText.TextTable indexes ; PrintDayCareText.TextTable indexes
const_def const_def
const DAYCARETEXT_MAN_INTRO const DAYCARETEXT_MAN_INTRO
const DAYCARETEXT_MAN_EGG const DAYCARETEXT_MAN_ODD_EGG
const DAYCARETEXT_LADY_INTRO const DAYCARETEXT_LADY_INTRO
const DAYCARETEXT_LADY_EGG const DAYCARETEXT_LADY_ODD_EGG
const DAYCARETEXT_WHICH_ONE const DAYCARETEXT_WHICH_ONE
const DAYCARETEXT_DEPOSIT const DAYCARETEXT_DEPOSIT
const DAYCARETEXT_CANT_BREED_EGG const DAYCARETEXT_CANT_BREED_EGG

View File

@ -204,7 +204,7 @@ Cut_SpawnAnimateLeaves:
ret ret
Cut_StartWaiting: Cut_StartWaiting:
ld a, $1 ld a, 1
ldh [hBGMapMode], a ldh [hBGMapMode], a
; Cut_WaitAnimSFX ; Cut_WaitAnimSFX
ld hl, wJumptableIndex ld hl, wJumptableIndex
@ -445,8 +445,8 @@ FlyFunction_FrameTimer:
sla a sla a
add 8 * 8 ; gives a number in [$40, $50, $60, $70] add 8 * 8 ; gives a number in [$40, $50, $60, $70]
ld d, a ld d, a
ld e, $0 ld e, 0
ld a, SPRITE_ANIM_INDEX_FLY_LEAF ; fly land ld a, SPRITE_ANIM_INDEX_FLY_LEAF
call InitSpriteAnimStruct call InitSpriteAnimStruct
ld hl, SPRITEANIMSTRUCT_TILE_ID ld hl, SPRITEANIMSTRUCT_TILE_ID
add hl, bc add hl, bc

View File

@ -278,7 +278,7 @@ HOF_SlideBackpic:
ldh a, [hSCX] ldh a, [hSCX]
cp $70 cp $70
ret z ret z
add $4 add 4
ldh [hSCX], a ldh [hSCX], a
call DelayFrame call DelayFrame
jr .backpicloop jr .backpicloop

View File

@ -103,6 +103,7 @@ CheckForLuckyNumberWinners:
ld a, [wScriptVar] ld a, [wScriptVar]
and a and a
ret z ; found nothing ret z ; found nothing
farcall StubbedTrainerRankings_LuckyNumberShow farcall StubbedTrainerRankings_LuckyNumberShow
ld a, [wTempByteValue] ld a, [wTempByteValue]
and a and a

View File

@ -78,6 +78,7 @@ MagnetTrain:
ldh [hSCX], a ldh [hSCX], a
xor a xor a
ldh [hBGMapMode], a ldh [hBGMapMode], a
pop af pop af
ldh [rSVBK], a ldh [rSVBK], a
ret ret
@ -127,7 +128,7 @@ MagnetTrain_LoadGFX_PlayMusic:
ldh [hSCX], a ldh [hSCX], a
ldh [hSCY], a ldh [hSCY], a
; Load the player sprite ; Load the player sprite's standing frames
ldh a, [rSVBK] ldh a, [rSVBK]
push af push af
ld a, BANK(wPlayerGender) ld a, BANK(wPlayerGender)
@ -139,7 +140,7 @@ MagnetTrain_LoadGFX_PlayMusic:
ld c, 4 ld c, 4
call Request2bpp call Request2bpp
; Load the trainer walking frame ; Load the player sprite's walking frames
ld hl, 12 tiles ld hl, 12 tiles
add hl, de add hl, de
ld d, h ld d, h

View File

@ -349,7 +349,7 @@ SurfFunction:
.TrySurf: .TrySurf:
ld de, ENGINE_FOGBADGE ld de, ENGINE_FOGBADGE
call CheckBadge call CheckBadge
jr c, .asm_c956 jr c, .nofogbadge
ld hl, wBikeFlags ld hl, wBikeFlags
bit BIKEFLAGS_ALWAYS_ON_BIKE_F, [hl] bit BIKEFLAGS_ALWAYS_ON_BIKE_F, [hl]
jr nz, .cannotsurf jr nz, .cannotsurf
@ -368,7 +368,7 @@ SurfFunction:
jr c, .cannotsurf jr c, .cannotsurf
ld a, $1 ld a, $1
ret ret
.asm_c956 .nofogbadge
ld a, $80 ld a, $80
ret ret
.alreadyfail .alreadyfail
@ -407,7 +407,7 @@ UsedSurfScript:
waitbutton waitbutton
closetext closetext
callasm .empty_fn ; empty function callasm .stubbed_fn
readmem wBuffer2 readmem wBuffer2
writevar VAR_MOVEMENT writevar VAR_MOVEMENT
@ -419,7 +419,7 @@ UsedSurfScript:
applymovement PLAYER, wMovementBuffer applymovement PLAYER, wMovementBuffer
end end
.empty_fn .stubbed_fn
farcall StubbedTrainerRankings_Surf farcall StubbedTrainerRankings_Surf
ret ret
@ -1369,7 +1369,7 @@ RockSmashScript:
special WaitSFX special WaitSFX
playsound SFX_STRENGTH playsound SFX_STRENGTH
earthquake 84 earthquake 84
applymovementlasttalked MovementData_0xcf55 applymovementlasttalked MovementData_RockSmash
disappear -2 disappear -2
callasm RockMonEncounter callasm RockMonEncounter
@ -1381,7 +1381,7 @@ RockSmashScript:
.done .done
end end
MovementData_0xcf55: MovementData_RockSmash:
rock_smash 10 rock_smash 10
step_end step_end
@ -1591,11 +1591,11 @@ Script_FishCastRod:
loademote EMOTE_ROD loademote EMOTE_ROD
callasm LoadFishingGFX callasm LoadFishingGFX
loademote EMOTE_SHOCK loademote EMOTE_SHOCK
applymovement PLAYER, MovementData_0xd093 applymovement PLAYER, MovementData_CastRod
pause 40 pause 40
end end
MovementData_0xd093: MovementData_CastRod:
fish_cast_rod fish_cast_rod
step_end step_end
@ -1787,10 +1787,10 @@ AskCutScript:
opentext opentext
writetext AskCutText writetext AskCutText
yesorno yesorno
iffalse .script_d1b8 iffalse .declined
callasm .CheckMap callasm .CheckMap
iftrue Script_Cut iftrue Script_Cut
.script_d1b8 .declined
closetext closetext
end end

View File

@ -11,7 +11,7 @@ _DummyGame:
ld b, SCGB_DIPLOMA ld b, SCGB_DIPLOMA
call GetSGBLayout call GetSGBLayout
callfar ClearSpriteAnims callfar ClearSpriteAnims
ld hl, LZ_e2221 ld hl, DummyGameLZ
ld de, vTiles2 tile $00 ld de, vTiles2 tile $00
call Decompress call Decompress
ld hl, Unknown_e00ed ld hl, Unknown_e00ed
@ -586,5 +586,5 @@ DummyGame_InterpretJoypad_AnimateCursor:
ld [hl], a ld [hl], a
ret ret
LZ_e2221: DummyGameLZ:
INCBIN "gfx/dummy_game/dummy_game.2bpp.lz" INCBIN "gfx/dummy_game/dummy_game.2bpp.lz"