Implement Flash technique through a map callback of type MAPCALLBACK_ENDMAPSETUP (#34)

This callback type is executed in a new map setup command at the very end of every map setup script. Maps that should trigger the use of Flash automatically should use an instance of this callback with fixed functionality
This commit is contained in:
xCrystal
2023-12-31 15:05:07 +01:00
parent c5e3179059
commit ce4ca85494
7 changed files with 38 additions and 2 deletions

View File

@@ -202,3 +202,6 @@ ResetLevelScopedEventFlags:
jr nz, .loop
ret
MapCallbackAtEndMapSetup:
ld a, MAPCALLBACK_ENDMAPSETUP
jp RunMapCallback