summaryrefslogtreecommitdiff
path: root/Add-a-new-spawn-point.md
diff options
context:
space:
mode:
Diffstat (limited to 'Add-a-new-spawn-point.md')
-rw-r--r--Add-a-new-spawn-point.md54
1 files changed, 26 insertions, 28 deletions
diff --git a/Add-a-new-spawn-point.md b/Add-a-new-spawn-point.md
index 3471361..81ea632 100644
--- a/Add-a-new-spawn-point.md
+++ b/Add-a-new-spawn-point.md
@@ -1,25 +1,25 @@
This tutorial is for how to add a new spawn point for fly.
-After successfully achieved the "[Add a new map and landmark](https://github.com/pret/pokecrystal/wiki/Add-a-new-map-and-landmark)" tutorial,
+After successfully achieved the "[Add a new map and landmark](https://github.com/pret/pokecrystal/wiki/Add-a-new-map-and-landmark)" tutorial,
Simply edit [constants/map_data_constants.asm]:
```diff
; johto
- const SPAWN_NEW_BARK
- ...
- const SPAWN_GOLDENROD
-+ const SPAWN_GLOBALTERMINAL
+ const SPAWN_NEW_BARK
+ ...
+ const SPAWN_GOLDENROD
++ const SPAWN_GLOBALTERMINAL
```
Then edit [data/maps/spawn_points.asm]:
```diff
SpawnPoints:
-
- ...
- spawn GOLDENROD_CITY, 15, 28
-+ spawn GLOBAL_TERMINAL_OUTSIDE, 8, 10
+
+ ...
+ spawn GOLDENROD_CITY, 15, 28
++ spawn GLOBAL_TERMINAL_OUTSIDE, 8, 10
```
Then edit [data/maps/flypoints.asm]
@@ -29,9 +29,9 @@ Flypoints:
...
; Johto
- ...
- flypoint GOLDENROD, GOLDENROD_CITY
-+ flypoint GLOBALTERMINAL, GLOBAL_TERMINAL
+ ...
+ flypoint GOLDENROD, GOLDENROD_CITY
++ flypoint GLOBALTERMINAL, GLOBAL_TERMINAL
```
Then edit [constants/engine_flags.asm]
@@ -39,33 +39,31 @@ Then edit [constants/engine_flags.asm]
```diff
...
; wVisitedSpawns
- const ENGINE_FLYPOINT_GOLDENROD
-+ const ENGINE_FLYPOINT_GLOBALTERMINAL
+ const ENGINE_FLYPOINT_GOLDENROD
++ const ENGINE_FLYPOINT_GLOBALTERMINAL
```
Then edit [data/engine_flags.asm]
```diff
EngineFlags:
- ...
- ; fly
- ...
- engine_flag wVisitedSpawns, SPAWN_GOLDENROD
-+ engine_flag wVisitedSpawns, SPAWN_GLOBALTERMINAL
+ ...
+ ; fly
+ ...
+ engine_flag wVisitedSpawns, SPAWN_GOLDENROD
++ engine_flag wVisitedSpawns, SPAWN_GLOBALTERMINAL
```
Then edit [maps/GlobalTerminalOutSide.asm]
```diff
...
-GlobalTerminalOutside_MapScripts:
- db 0 ; scene scripts
-+ db 1 ; callbacks
-+ callback MAPCALLBACK_NEWMAP, .Flypoint
-
-+ .Flypoint:
-+ setflag ENGINE_FLYPOINT_GLOBALTERMINAL
-+ return
+ def_callbacks
++ callback MAPCALLBACK_NEWMAP, .Flypoint
+
++.Flypoint:
++ setflag ENGINE_FLYPOINT_GLOBALTERMINAL
++ return
```
-Then compile your project and you're done \ No newline at end of file
+Then compile your project and you're done