2018-06-25 00:10:37 +00:00
|
|
|
Script_BattleWhiteout::
|
2015-11-11 21:11:08 +00:00
|
|
|
callasm BattleBGMap
|
2019-03-10 20:39:31 +00:00
|
|
|
sjump Script_Whiteout
|
2015-11-11 21:11:08 +00:00
|
|
|
|
2020-07-17 12:37:03 +00:00
|
|
|
OverworldWhiteoutScript::
|
2018-01-12 06:40:20 +00:00
|
|
|
refreshscreen
|
2015-11-11 21:11:08 +00:00
|
|
|
callasm OverworldBGMap
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
Script_Whiteout:
|
2015-11-11 21:11:08 +00:00
|
|
|
writetext .WhitedOutText
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2018-01-24 16:17:05 +00:00
|
|
|
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-24 16:17:05 +00:00
|
|
|
special WarpToSpawnPoint
|
2015-11-11 21:11:08 +00:00
|
|
|
newloadmap MAPSETUP_WARP
|
2018-02-03 02:09:17 +00:00
|
|
|
endall
|
2015-11-11 21:11:08 +00:00
|
|
|
|
|
|
|
.bug_contest
|
2020-06-10 20:44:16 +00:00
|
|
|
jumpstd BugContestResultsWarpScript
|
2015-11-11 21:11:08 +00:00
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
.WhitedOutText:
|
2019-10-20 22:24:17 +00:00
|
|
|
text_far _WhitedOutText
|
2018-11-17 18:33:03 +00:00
|
|
|
text_end
|
2015-11-11 21:11:08 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
OverworldBGMap:
|
2015-11-11 21:11:08 +00:00
|
|
|
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
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
BattleBGMap:
|
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
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
HalveMoney:
|
2018-01-02 19:00:14 +00:00
|
|
|
farcall StubbedTrainerRankings_WhiteOuts
|
2015-11-11 21:11:08 +00:00
|
|
|
|
|
|
|
; Halve the player's money.
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wMoney
|
2015-11-11 21:11:08 +00:00
|
|
|
ld a, [hl]
|
|
|
|
srl a
|
|
|
|
ld [hli], a
|
|
|
|
ld a, [hl]
|
|
|
|
rra
|
|
|
|
ld [hli], a
|
|
|
|
ld a, [hl]
|
|
|
|
rra
|
|
|
|
ld [hl], a
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
GetWhiteoutSpawn:
|
2015-11-11 21:11:08 +00:00
|
|
|
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
|
2018-01-23 22:39:09 +00:00
|
|
|
ld [wDefaultSpawnpoint], a
|
2015-11-11 21:11:08 +00:00
|
|
|
ret
|