Skip to content

Commit f60d28c

Browse files
Merge pull request #693 from pret/porymap-6
Update for Porymap 6
2 parents 8701517 + 82d2283 commit f60d28c

File tree

281 files changed

+2682
-2400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+2682
-2400
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ ld_script_ruby.txt
4444
ld_script_sapphire.txt
4545
sound/**/*.bin
4646
sound/songs/midi/*.s
47+
src/data/heal_locations.h
4748
src/data/items.h
4849
src/data/wild_encounters.h
4950
src/data/region_map/region_map_entries.h

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ generated: $(AUTO_GEN_TARGETS)
264264
%.rl: % ; $(GFX) $< $@
265265

266266
clean-generated:
267-
-rm -f $(AUTO_GEN_TARGETS)
267+
@rm -f $(AUTO_GEN_TARGETS)
268+
@echo "rm -f <AUTO_GEN_TARGETS>"
268269

269270
ifeq ($(MODERN),0)
270271
$(C_BUILDDIR)/agb_flash.o: CFLAGS := -O -mthumb-interwork

asm/macros/event.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,10 @@
610610
.endm
611611

612612
@ Blocks script execution until the movements being applied to the specified (localId) object finish.
613-
@ If localId is 0, then the id of the last-moved object will be used instead. If the specified object
614-
@ is not currently being manipulated with applymovement, then this command does nothing.
613+
@ If localId is LOCALID_NONE (0), then the id of the last-moved object will be used instead.
614+
@ If the specified object is not currently being manipulated with applymovement, then this command does nothing.
615615
@ If no map is specified, then the current map is used.
616-
.macro waitmovement localId:req, map
616+
.macro waitmovement localId=LOCALID_NONE, map
617617
.ifb \map
618618
.byte 0x51
619619
.2byte \localId

data/maps/BirthIsland_Exterior/map.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "MAP_BIRTH_ISLAND_EXTERIOR",
33
"name": "BirthIsland_Exterior",
44
"layout": "LAYOUT_BIRTH_ISLAND_EXTERIOR",
5-
"music": "0xFFFF",
5+
"music": "MUS_NONE",
66
"region_map_section": "MAPSEC_BIRTH_ISLAND",
77
"requires_flash": false,
88
"weather": "WEATHER_NONE",
@@ -16,6 +16,7 @@
1616
"connections": null,
1717
"object_events": [
1818
{
19+
"local_id": "LOCALID_BIRTH_ISLAND_EXTERIOR_ROCK",
1920
"type": "object",
2021
"graphics_id": "OBJ_EVENT_GFX_METEORITE",
2122
"x": 15,
@@ -30,6 +31,7 @@
3031
"flag": "FLAG_HIDE_BIRTH_ISLAND_METEORITE"
3132
},
3233
{
34+
"local_id": "LOCALID_BIRTH_ISLAND_DEOXYS",
3335
"type": "object",
3436
"graphics_id": "OBJ_EVENT_GFX_VAR_0",
3537
"x": 15,

data/maps/BirthIsland_Exterior/scripts.inc

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.set LOCALID_DEOXYS_ROCK, 1
2-
.set LOCALID_DEOXYS, 2
3-
41
BirthIsland_Exterior_MapScripts::
52
map_script MAP_SCRIPT_ON_TRANSITION, BirthIsland_Exterior_OnTransition
63
map_script MAP_SCRIPT_ON_RESUME, BirthIsland_Exterior_OnResume
@@ -38,7 +35,7 @@ BirthIsland_Exterior_OnResume::
3835
BirthIsland_Exterior_EventScript_TryRemoveDeoxys::
3936
specialvar VAR_RESULT, GetBattleOutcome
4037
goto_if_ne VAR_RESULT, B_OUTCOME_CAUGHT, EventScript_Return
41-
removeobject LOCALID_DEOXYS
38+
removeobject LOCALID_BIRTH_ISLAND_DEOXYS
4239
return
4340

4441
BirthIsland_Exterior_EventScript_Triangle::
@@ -68,21 +65,21 @@ BirthIsland_Exterior_EventScript_NotSolved3::
6865
end
6966

7067
BirthIsland_Exterior_EventScript_Deoxys::
71-
addobject LOCALID_DEOXYS
68+
addobject LOCALID_BIRTH_ISLAND_DEOXYS
7269
waitse
73-
setfieldeffectargument 0, LOCALID_DEOXYS_ROCK
74-
setfieldeffectargument 1, MAP_NUM(BIRTH_ISLAND_EXTERIOR)
75-
setfieldeffectargument 2, MAP_GROUP(BIRTH_ISLAND_EXTERIOR)
70+
setfieldeffectargument 0, LOCALID_BIRTH_ISLAND_EXTERIOR_ROCK
71+
setfieldeffectargument 1, MAP_NUM(MAP_BIRTH_ISLAND_EXTERIOR)
72+
setfieldeffectargument 2, MAP_GROUP(MAP_BIRTH_ISLAND_EXTERIOR)
7673
dofieldeffect FLDEFF_DESTROY_DEOXYS_ROCK
7774
playbgm MUS_ENCOUNTER_DEOXYS, 0
7875
waitfieldeffect FLDEFF_DESTROY_DEOXYS_ROCK
79-
applymovement LOCALID_DEOXYS, Movement_DeoxysApproach
76+
applymovement LOCALID_BIRTH_ISLAND_DEOXYS, Movement_DeoxysApproach
8077
waitmovement 0
8178
waitse
8279
playmoncry SPECIES_DEOXYS, CRY_MODE_ENCOUNTER
8380
delay 40
8481
waitmoncry
85-
setvar VAR_LAST_TALKED, LOCALID_DEOXYS
82+
setvar VAR_LAST_TALKED, LOCALID_BIRTH_ISLAND_DEOXYS
8683
seteventmon SPECIES_DEOXYS, 30
8784
setflag FLAG_SYS_SPECIAL_WILD_BATTLE
8885
special StartLegendaryBattle

data/maps/BirthIsland_Harbor/map.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "MAP_BIRTH_ISLAND_HARBOR",
33
"name": "BirthIsland_Harbor",
44
"layout": "LAYOUT_ISLAND_HARBOR",
5-
"music": "0xFFFF",
5+
"music": "MUS_NONE",
66
"region_map_section": "MAPSEC_BIRTH_ISLAND",
77
"requires_flash": false,
88
"weather": "WEATHER_NONE",

data/maps/CeladonCity/map.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"flag": "FLAG_HIDE_CELADON_ROCKETS"
4242
},
4343
{
44+
"local_id": "LOCALID_CELADON_FAT_MAN",
4445
"type": "object",
4546
"graphics_id": "OBJ_EVENT_GFX_FAT_MAN",
4647
"x": 38,
@@ -55,6 +56,7 @@
5556
"flag": "0"
5657
},
5758
{
59+
"local_id": "LOCALID_CELADON_POLIWRATH",
5860
"type": "object",
5961
"graphics_id": "OBJ_EVENT_GFX_POLIWRATH",
6062
"x": 36,
@@ -153,6 +155,7 @@
153155
"flag": "0"
154156
},
155157
{
158+
"local_id": "LOCALID_CELADON_BORDER_TREE",
156159
"type": "object",
157160
"graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
158161
"x": 52,
@@ -199,7 +202,7 @@
199202
"graphics_id": "OBJ_EVENT_GFX_CUT_TREE",
200203
"x": -7,
201204
"y": 21,
202-
"target_local_id": 7,
205+
"target_local_id": "LOCALID_ROUTE16_CUT_TREE",
203206
"target_map": "MAP_ROUTE16"
204207
},
205208
{

data/maps/CeladonCity/scripts.inc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.set LOCALID_FAT_MAN, 2
2-
.set LOCALID_POLIWRATH, 3
3-
41
CeladonCity_MapScripts::
52
map_script MAP_SCRIPT_ON_TRANSITION, CeladonCity_OnTransition
63
.byte 0
@@ -36,7 +33,7 @@ CeladonCity_EventScript_FatMan::
3633
faceplayer
3734
msgbox CeladonCity_Text_MyTrustedPalPoliwrath
3835
closemessage
39-
applymovement LOCALID_FAT_MAN, Common_Movement_FaceOriginalDirection
36+
applymovement LOCALID_CELADON_FAT_MAN, Common_Movement_FaceOriginalDirection
4037
waitmovement 0
4138
release
4239
end
@@ -49,7 +46,7 @@ CeladonCity_EventScript_Poliwrath::
4946
msgbox CeladonCity_Text_Poliwrath
5047
closemessage
5148
waitmoncry
52-
applymovement LOCALID_POLIWRATH, Common_Movement_FaceOriginalDirection
49+
applymovement LOCALID_CELADON_POLIWRATH, Common_Movement_FaceOriginalDirection
5350
waitmovement 0
5451
release
5552
end

data/maps/CeladonCity_Condominiums_RoofRoom/map.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"flag": "0"
3131
},
3232
{
33+
"local_id": "LOCALID_EEVEE_POKEBALL",
3334
"type": "object",
3435
"graphics_id": "OBJ_EVENT_GFX_ITEM_BALL",
3536
"x": 7,

data/maps/CeladonCity_Condominiums_RoofRoom/scripts.inc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.set LOCALID_EEVEE_POKEBALL, 2
2-
31
CeladonCity_Condominiums_RoofRoom_MapScripts::
42
.byte 0
53

0 commit comments

Comments
 (0)