mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-04-26 08:13:44 -05:00
Some checks failed
CI / build (push) Has been cancelled
* Sporadic constantifying and function naming * Added bank 14 * Delete .DS_Store files * Delete EOL whitespace * Use Tab indents instead of four spaces * Identify some routines * Identify more stuff * Identified party and box structs * Identified wBattleMon and wEnemyMon structs * Macro'd landmarks, cleaned up comments --------- Co-authored-by: vulcandth <vulcandth@gmail.com>
34 lines
598 B
PHP
34 lines
598 B
PHP
FieldDebug_Teleport:
|
|
call .DoTeleport
|
|
ld a, FIELDDEBUG_RETURN_REOPEN
|
|
ret
|
|
|
|
.DoTeleport:
|
|
ld a, [wMapGroup]
|
|
ld d, a
|
|
ld a, [wMapId]
|
|
ld e, a
|
|
callfar IsSpawnPoint
|
|
jr nc, .not_spawn_point
|
|
ld a, [wMapGroup]
|
|
ld [wLastSpawnMapGroup], a
|
|
ld a, [wMapId]
|
|
ld [wLastSpawnMapNumber], a
|
|
ld hl, .MapRegisteredText
|
|
call MenuTextBoxBackup
|
|
ret
|
|
|
|
.not_spawn_point
|
|
ld hl, .CannotRegisterMapText
|
|
call MenuTextBoxBackup
|
|
ret
|
|
|
|
.MapRegisteredText:
|
|
text "このばしょを とうろくしました"
|
|
para "<DONE>"
|
|
|
|
.CannotRegisterMapText:
|
|
text "ここは とうろくできません!"
|
|
para "<DONE>"
|
|
|