2015-11-11 21:11:08 +00:00
|
|
|
Script_BattleWhiteout:: ; 0x124c1
|
|
|
|
callasm BattleBGMap
|
|
|
|
jump Script_Whiteout
|
|
|
|
; 0x124c8
|
|
|
|
|
|
|
|
Script_OverworldWhiteout:: ; 0x124c8
|
2018-01-12 06:40:20 +00:00
|
|
|
refreshscreen
|
2015-11-11 21:11:08 +00:00
|
|
|
callasm OverworldBGMap
|
|
|
|
|
|
|
|
Script_Whiteout: ; 0x124ce
|
|
|
|
writetext .WhitedOutText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2018-01-02 16:13:57 +00:00
|
|
|
special Special_FadeOutPalettes
|
2015-11-11 21:11:08 +00:00
|
|
|
pause 40
|
|
|
|
special HealParty
|
|
|
|
checkflag ENGINE_BUG_CONTEST_TIMER
|
|
|
|
iftrue .bug_contest
|
|
|
|
callasm HalveMoney
|
|
|
|
callasm GetWhiteoutSpawn
|
|
|
|
farscall Script_AbortBugContest
|
2018-01-02 16:13:57 +00:00
|
|
|
special Special_WarpToSpawnPoint
|
2015-11-11 21:11:08 +00:00
|
|
|
newloadmap MAPSETUP_WARP
|
2015-12-09 16:38:40 +00:00
|
|
|
end_all
|
2015-11-11 21:11:08 +00:00
|
|
|
|
|
|
|
.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
|
2015-12-11 21:59:40 +00:00
|
|
|
call WaitBGMap2
|
2015-11-11 21:11:08 +00:00
|
|
|
call HideSprites
|
2015-11-20 16:47:52 +00:00
|
|
|
call RotateThreePalettesLeft
|
2015-11-11 21:11:08 +00:00
|
|
|
ret
|
|
|
|
; 1250a
|
|
|
|
|
|
|
|
BattleBGMap: ; 1250a
|
2015-12-28 15:57:04 +00:00
|
|
|
ld b, SCGB_BATTLE_GRAYSCALE
|
2015-11-11 21:11:08 +00:00
|
|
|
call GetSGBLayout
|
|
|
|
call SetPalettes
|
|
|
|
ret
|
|
|
|
; 12513
|
|
|
|
|
|
|
|
HalveMoney: ; 12513
|
2018-01-02 19:00:14 +00:00
|
|
|
farcall StubbedTrainerRankings_WhiteOuts
|
2015-11-11 21:11:08 +00:00
|
|
|
|
|
|
|
; 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
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall IsSpawnPoint
|
2015-11-11 21:11:08 +00:00
|
|
|
ld a, c
|
|
|
|
jr c, .yes
|
|
|
|
xor a ; SPAWN_HOME
|
|
|
|
|
|
|
|
.yes
|
2017-12-09 20:14:51 +00:00
|
|
|
ld [DefaultSpawnpoint], a
|
2015-11-11 21:11:08 +00:00
|
|
|
ret
|
|
|
|
; 1253d
|