mirror of
https://github.com/pret/pokegold-spaceworld.git
synced 2026-04-26 00:05:12 -05:00
Some checks failed
CI / build (push) Has been cancelled
* Add Katakana `リ`, `ヘ`, `ベ`, `ペ` in charmap and text strings * Format text strings, using macro where possible * Remove unused charmap entries, name `Function3036` * Charmap update and reorder, `TextAsmEnd`
37 lines
599 B
PHP
37 lines
599 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
|