mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
32ed487a47
# Conflicts: # audio/engine.asm # constants/gfx_constants.asm # constants/map_data_constants.asm # constants/pokemon_data_constants.asm # constants/sprite_constants.asm # constants/wram_constants.asm # data/maps/data.asm # engine/battle/ai/scoring.asm # engine/battle/core.asm # engine/battle/effect_commands.asm # engine/battle/misc.asm # engine/battle_anims/getpokeballwobble.asm # engine/breeding.asm # engine/buy_sell_toss.asm # engine/decorations.asm # engine/events/battle_tower/battle_tower.asm # engine/events/battle_tower/rules.asm # engine/events/buena.asm # engine/events/bug_contest/contest_2.asm # engine/events/daycare.asm # engine/events/dratini.asm # engine/events/halloffame.asm # engine/events/happiness_egg.asm # engine/events/kurt.asm # engine/events/lucky_number.asm # engine/events/magnet_train.asm # engine/events/overworld.asm # engine/events/pokerus/pokerus.asm # engine/events/print_unown.asm # engine/events/print_unown_2.asm # engine/events/unown_walls.asm # engine/item_effects.asm # engine/link.asm # engine/mon_menu.asm # engine/player_object.asm # engine/routines/playslowcry.asm # engine/scripting.asm # engine/search.asm # engine/search2.asm # engine/specials.asm # engine/start_menu.asm # engine/timeset.asm # home/battle_vars.asm # home/map.asm # maps/GoldenrodUndergroundSwitchRoomEntrances.asm # maps/IlexForest.asm # maps/KrissHouse2F.asm # maps/Route39Barn.asm # mobile/mobile_12_2.asm # mobile/mobile_40.asm # mobile/mobile_5f.asm # wram.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 FadeOutPalettes
|
|
pause 40
|
|
special HealParty
|
|
checkflag ENGINE_BUG_CONTEST_TIMER
|
|
iftrue .bug_contest
|
|
callasm HalveMoney
|
|
callasm GetWhiteoutSpawn
|
|
farscall Script_AbortBugContest
|
|
special WarpToSpawnPoint
|
|
newloadmap MAPSETUP_WARP
|
|
endall
|
|
|
|
.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, wMoney
|
|
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 [wDefaultSpawnpoint], a
|
|
ret
|
|
; 1253d
|