mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
5c28d05bb4
# Conflicts: # data/items/descriptions.asm # data/sprite_anims/framesets.asm # engine/crystal_colors.asm # engine/events/kurt.asm # engine/events/special.asm # engine/events/std_scripts.asm # engine/events_3.asm # engine/item_effects.asm # engine/namingscreen.asm # engine/scripting.asm # engine/stats_screen.asm # engine/trade_animation.asm # home/audio.asm # main.asm # maps/BattleTower1F.asm # maps/BattleTowerBattleRoom.asm # maps/BurnedTowerB1F.asm # maps/ElmsLab.asm # maps/GoldenrodDeptStore5F.asm # maps/GoldenrodUnderground.asm # maps/HallOfFame.asm # maps/MahoganyTown.asm # maps/ManiasHouse.asm # maps/MobileBattleRoom.asm # maps/MobileTradeRoomMobile.asm # maps/RadioTower2F.asm # maps/Route35NationalParkGate.asm # maps/Route36NationalParkGate.asm # maps/Route39Farmhouse.asm # tilesets/palette_maps.asm
83 lines
1.3 KiB
NASM
Executable File
83 lines
1.3 KiB
NASM
Executable File
Script_BattleWhiteout:: ; 0x124c1
|
|
callasm BattleBGMap
|
|
jump Script_Whiteout
|
|
; 0x124c8
|
|
|
|
Script_OverworldWhiteout:: ; 0x124c8
|
|
refreshscreen
|
|
callasm OverworldBGMap
|
|
|
|
Script_Whiteout: ; 0x124ce
|
|
writetext .WhitedOutText
|
|
waitbutton
|
|
special Special_FadeOutPalettes
|
|
pause 40
|
|
special HealParty
|
|
checkflag ENGINE_BUG_CONTEST_TIMER
|
|
iftrue .bug_contest
|
|
callasm HalveMoney
|
|
callasm GetWhiteoutSpawn
|
|
farscall Script_AbortBugContest
|
|
special Special_WarpToSpawnPoint
|
|
newloadmap MAPSETUP_WARP
|
|
end_all
|
|
|
|
.bug_contest
|
|
jumpstd bugcontestresultswarp
|
|
; 0x124f5
|
|
|
|
.WhitedOutText: ; 0x124f5
|
|
; is out of useable #MON! whited out!
|
|
text_jump UnknownText_0x1c0a4e
|
|
db "@"
|
|
; 0x124fa
|
|
|
|
OverworldBGMap: ; 124fa
|
|
call ClearPalettes
|
|
call ClearScreen
|
|
call WaitBGMap2
|
|
call HideSprites
|
|
call RotateThreePalettesLeft
|
|
ret
|
|
; 1250a
|
|
|
|
BattleBGMap: ; 1250a
|
|
ld b, SCGB_BATTLE_GRAYSCALE
|
|
call GetSGBLayout
|
|
call SetPalettes
|
|
ret
|
|
; 12513
|
|
|
|
HalveMoney: ; 12513
|
|
farcall StubbedTrainerRankings_WhiteOuts
|
|
|
|
; Halve the player's money.
|
|
ld hl, Money
|
|
ld a, [hl]
|
|
srl a
|
|
ld [hli], a
|
|
ld a, [hl]
|
|
rra
|
|
ld [hli], a
|
|
ld a, [hl]
|
|
rra
|
|
ld [hl], a
|
|
ret
|
|
; 12527
|
|
|
|
|
|
GetWhiteoutSpawn: ; 12527
|
|
ld a, [wLastSpawnMapGroup]
|
|
ld d, a
|
|
ld a, [wLastSpawnMapNumber]
|
|
ld e, a
|
|
farcall IsSpawnPoint
|
|
ld a, c
|
|
jr c, .yes
|
|
xor a ; SPAWN_HOME
|
|
|
|
.yes
|
|
ld [DefaultSpawnpoint], a
|
|
ret
|
|
; 1253d
|