mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-08 00:55:28 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
73
engine/events/whiteout.asm
Normal file
73
engine/events/whiteout.asm
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
Script_BattleWhiteout::
|
||||
callasm BattleBGMap
|
||||
sjump Script_Whiteout
|
||||
|
||||
OverworldWhiteoutScript::
|
||||
refreshscreen
|
||||
callasm OverworldBGMap
|
||||
|
||||
Script_Whiteout:
|
||||
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 BugContestResultsWarpScript
|
||||
|
||||
.WhitedOutText:
|
||||
text_far _WhitedOutText
|
||||
text_end
|
||||
|
||||
OverworldBGMap:
|
||||
call ClearPalettes
|
||||
call ClearScreen
|
||||
call WaitBGMap2
|
||||
call HideSprites
|
||||
call RotateThreePalettesLeft
|
||||
ret
|
||||
|
||||
BattleBGMap:
|
||||
ld b, SCGB_BATTLE_GRAYSCALE
|
||||
call GetSGBLayout
|
||||
call SetPalettes
|
||||
ret
|
||||
|
||||
HalveMoney:
|
||||
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
|
||||
|
||||
GetWhiteoutSpawn:
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue