Use def_* macros for automatic map event counts

Resolves #742
This commit is contained in:
Rangi
2020-07-24 09:49:26 -04:00
parent 89c47f2170
commit dcb24bc724
392 changed files with 2750 additions and 2695 deletions

View File

@@ -1,10 +1,10 @@
object_const_def ; object_event constants
object_const_def
const ROUTE38ECRUTEAKGATE_OFFICER
Route38EcruteakGate_MapScripts:
db 0 ; scene scripts
def_scene_scripts
db 0 ; callbacks
def_callbacks
Route38EcruteakGateOfficerScript:
jumptextfaceplayer Route38EcruteakGateOfficerText
@@ -25,15 +25,15 @@ Route38EcruteakGateOfficerText:
Route38EcruteakGate_MapEvents:
db 0, 0 ; filler
db 4 ; warp events
def_warp_events
warp_event 0, 4, ROUTE_38, 1
warp_event 0, 5, ROUTE_38, 2
warp_event 9, 4, ECRUTEAK_CITY, 14
warp_event 9, 5, ECRUTEAK_CITY, 15
db 0 ; coord events
def_coord_events
db 0 ; bg events
def_bg_events
db 1 ; object events
def_object_events
object_event 5, 2, SPRITE_OFFICER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, Route38EcruteakGateOfficerScript, -1