summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore7
-rw-r--r--Makefile5
-rw-r--r--engine/battle/effect_commands.asm2
-rw-r--r--engine/overworld/scripting.asm4
-rw-r--r--maps/PlayersHouse1F.asm32
-rwxr-xr-xtools/unnamed.py2
6 files changed, 29 insertions, 23 deletions
diff --git a/.gitignore b/.gitignore
index 8f7b9a932..faa96ee16 100644
--- a/.gitignore
+++ b/.gitignore
@@ -42,11 +42,12 @@ used_space.png
# osx files
.DS_STORE
-*.dimensions
-*.gbcpal
-*.2bpp
+# compiled graphics
*.1bpp
+*.2bpp
*.lz
+*.gbcpal
+*.dimensions
*.animated.tilemap
*.sgb.tilemap
gfx/pokemon/*/bitmask.asm
diff --git a/Makefile b/Makefile
index 0c6b1e426..d130725a8 100644
--- a/Makefile
+++ b/Makefile
@@ -67,6 +67,11 @@ tools:
RGBASMFLAGS = -L -Weverything
+# Create a sym/map for debug purposes if `make` run with `DEBUG=1`
+ifeq ($(DEBUG),1)
+RGBASMFLAGS += -E
+endif
+
$(crystal_obj): RGBASMFLAGS +=
$(crystal11_obj): RGBASMFLAGS += -D _CRYSTAL11
$(crystal_au_obj): RGBASMFLAGS += -D _CRYSTAL11 -D _CRYSTAL_AU
diff --git a/engine/battle/effect_commands.asm b/engine/battle/effect_commands.asm
index 31ab1dd3e..c3e913cf3 100644
--- a/engine/battle/effect_commands.asm
+++ b/engine/battle/effect_commands.asm
@@ -1108,7 +1108,7 @@ CheckMimicUsed:
call GetBattleVar
cp MIMIC
jr z, .mimic
-;
+
ld b, 0
add hl, bc
ld a, [hl]
diff --git a/engine/overworld/scripting.asm b/engine/overworld/scripting.asm
index bd74cfc40..8e35b3b45 100644
--- a/engine/overworld/scripting.asm
+++ b/engine/overworld/scripting.asm
@@ -516,7 +516,7 @@ ret_96f76:
GiveItemScript:
callasm ret_96f76
- writetext ReceivedItemText
+ writetext .ReceivedItemText
iffalse .Full
waitsfx
specialsound
@@ -529,7 +529,7 @@ GiveItemScript:
pocketisfull
end
-ReceivedItemText:
+.ReceivedItemText:
text_far _ReceivedItemText
text_end
diff --git a/maps/PlayersHouse1F.asm b/maps/PlayersHouse1F.asm
index de60497a2..1e8f5e1c9 100644
--- a/maps/PlayersHouse1F.asm
+++ b/maps/PlayersHouse1F.asm
@@ -182,17 +182,17 @@ NeighborScript:
turnobject PLAYERSHOUSE1F_POKEFAN_F, RIGHT
end
-TVScript:
- jumptext TVText
+PlayersHouse1FTVScript:
+ jumptext PlayersHouse1FTVText
-StoveScript:
- jumptext StoveText
+PlayersHouse1FStoveScript:
+ jumptext PlayersHouse1FStoveText
-SinkScript:
- jumptext SinkText
+PlayersHouse1FSinkScript:
+ jumptext PlayersHouse1FSinkText
-FridgeScript:
- jumptext FridgeText
+PlayersHouse1FFridgeScript:
+ jumptext PlayersHouse1FFridgeText
MomTurnsTowardPlayerMovement:
turn_head RIGHT
@@ -351,20 +351,20 @@ NeighborText:
line "#MON!"
done
-StoveText:
+PlayersHouse1FStoveText:
text "Mom's specialty!"
para "CINNABAR VOLCANO"
line "BURGER!"
done
-SinkText:
+PlayersHouse1FSinkText:
text "The sink is spot-"
line "less. Mom likes it"
cont "clean."
done
-FridgeText:
+PlayersHouse1FFridgeText:
text "Let's see what's"
line "in the fridge…"
@@ -372,7 +372,7 @@ FridgeText:
line "tasty LEMONADE!"
done
-TVText:
+PlayersHouse1FTVText:
text "There's a movie on"
line "TV: Stars dot the"
@@ -396,10 +396,10 @@ PlayersHouse1F_MapEvents:
coord_event 9, 4, SCENE_DEFAULT, MeetMomRightScript
db 4 ; bg events
- bg_event 0, 1, BGEVENT_READ, StoveScript
- bg_event 1, 1, BGEVENT_READ, SinkScript
- bg_event 2, 1, BGEVENT_READ, FridgeScript
- bg_event 4, 1, BGEVENT_READ, TVScript
+ bg_event 0, 1, BGEVENT_READ, PlayersHouse1FStoveScript
+ bg_event 1, 1, BGEVENT_READ, PlayersHouse1FSinkScript
+ bg_event 2, 1, BGEVENT_READ, PlayersHouse1FFridgeScript
+ bg_event 4, 1, BGEVENT_READ, PlayersHouse1FTVScript
db 5 ; object events
object_event 7, 4, SPRITE_MOM, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MomScript, EVENT_PLAYERS_HOUSE_MOM_1
diff --git a/tools/unnamed.py b/tools/unnamed.py
index 54a1473f2..d6775073d 100755
--- a/tools/unnamed.py
+++ b/tools/unnamed.py
@@ -62,7 +62,7 @@ for line in args.symfile:
symbols.add(symbol)
# If no object files were provided, just print what we know and exit
-print("Unnamed symbols: %d (%.2f%% complete)" % (len(symbols),
+print("Unnamed pokecrystal symbols: %d (%.2f%% complete)" % (len(symbols),
(symbols_total - len(symbols)) / symbols_total * 100))
if not objects:
for sym in symbols: