Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync pokemon expansion #4

Merged
merged 126 commits into from
Oct 13, 2020
Merged
Show file tree
Hide file tree
Changes from 125 commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
a7a64ec
Fixup ModifyStatByNature
Sep 5, 2020
0039542
Match CheckBagHasSpace
Sep 5, 2020
ac9a86d
Remove movementAction fakematch
Sep 5, 2020
53a4eff
Tidy up headers
Sep 5, 2020
2d624d6
Fix
Sep 5, 2020
5d694ed
Specify array size: 12 semitones
Sep 5, 2020
3ce29ee
Refactor Use Item
Sep 5, 2020
fe9ab67
Change division to explicit shifts for consistency
Sep 5, 2020
8b729cf
While to do_while
Sep 5, 2020
781eb38
Removed unused comment
Sep 6, 2020
5d2a4e0
Remove explicit padding
Sep 6, 2020
e668466
Fix casting bug
Sep 6, 2020
b49c5d1
Move buffer has and operation too
Sep 6, 2020
8200682
u8 position
Sep 6, 2020
5f7a410
Preparation for matching BattleIntroOpponent1SendsOutMonAnimation
Sep 7, 2020
0a13d71
Make 0xFF have a lowercase "x"
Sep 7, 2020
3336eb3
More adjustments
Sep 8, 2020
4d31980
Undo comment
Sep 8, 2020
818bc4e
Merge pull request #1179 from PokeCodec/Maintenance
PikalaxALT Sep 8, 2020
e84da39
Match BattleIntroOpponent1SendsOutMonAnimation
Sep 8, 2020
6bb1d58
Finished header includes
Sep 8, 2020
bb5da94
Fix build
Sep 8, 2020
6fb1d55
Reverted -nostdlib changes
Sep 8, 2020
fb29a46
Merge pull request #1180 from PokeCodec/splitTableMatch
PikalaxALT Sep 9, 2020
6e3f5a4
Remove fakematch in trainer hell
Sep 9, 2020
34f54dd
Fix Battle util fakematch
Sep 9, 2020
f980188
Fix battle transition fakematch
Sep 9, 2020
8f6d6b9
Merge pull request #1181 from PokeCodec/trainer-hill
PikalaxALT Sep 9, 2020
779764b
Fix Battle_Script_commands fakematch
Sep 9, 2020
3af118b
Fix fakematch in pokemon animation
Sep 9, 2020
a3a8c23
Match battle_script commands
Sep 9, 2020
aa45c05
Match Battle Tower
Sep 9, 2020
56afdee
Remove register variable mention
Sep 9, 2020
dc34cf1
Mail Time
Sep 9, 2020
84a9227
Record mixing fakematch fixed!
Sep 9, 2020
d541002
Type adjust
Sep 9, 2020
a32f631
Fix Pokemon Fakematch
Sep 9, 2020
7f18277
Document size field of unknown struct
Sep 9, 2020
d260943
Merge pull request #1182 from PokeCodec/PokemonLogicFix
PikalaxALT Sep 9, 2020
f50ecf5
Match PrintMonWeight
Sep 9, 2020
0869610
Match dewford
Sep 9, 2020
50a6b73
Fix sub_80C6104
Sep 10, 2020
eb25b95
InitPaintingMonOamData fix
Sep 10, 2020
029db24
Make return
Sep 10, 2020
6967b23
adjustments and fakematch fix
Sep 10, 2020
8776975
spacing
Sep 10, 2020
c1286c2
Change according to feedback
Sep 10, 2020
c098716
Merge pull request #1183 from PokeCodec/PokemonLogicFix
PikalaxALT Sep 10, 2020
921f389
Fix Rusboro and Lavarige typos
GriffinRichards Sep 11, 2020
58a2b62
Merge pull request #1184 from GriffinRichards/fix-typos
GriffinRichards Sep 11, 2020
5c3669e
Bug documenting
kiliwily Sep 12, 2020
3e95f83
Update bugs_and_glitches.md
kiliwily Sep 12, 2020
84acc5c
Update bugs_and_glitches.md
kiliwily Sep 12, 2020
7377c2f
Update bugs_and_glitches.md
kiliwily Sep 12, 2020
4c4c2ea
Update bugs_and_glitches.md
kiliwily Sep 12, 2020
f84702e
Update bugs_and_glitches.md
kiliwily Sep 12, 2020
50139aa
Update bugs_and_glitches.md
kiliwily Sep 12, 2020
f861b70
Update bugs_and_glitches.md
kiliwily Sep 12, 2020
9b4ded4
Update pokemon.c
kiliwily Sep 12, 2020
a130c2d
Update bugs_and_glitches.md
kiliwily Sep 12, 2020
46ccb91
Fixed "Ultra Rope" name.
AsparagusEduardo Sep 13, 2020
b542eb1
Merge pull request #1190 from AsparagusEduardo/fix-UltraRope
GriffinRichards Sep 13, 2020
778e692
Complete TMHM Learnset description
Sep 16, 2020
227d2dc
Make description slightly more precise
Sep 16, 2020
62b7901
Merge pull request #1194 from ExpoSeed/typo-fix
GriffinRichards Sep 16, 2020
b9644e9
Update Audio Macros
Kurausukun Sep 17, 2020
f4a49dc
Make all arguments for audio macros required
Kurausukun Sep 17, 2020
a3a558a
Merge pull request #1195 from Kurausukun/audio-macro
GriffinRichards Sep 18, 2020
30e3437
rename instruments (again)
Kurausukun Sep 18, 2020
0e74de0
Changed casts to volatile
Sep 18, 2020
f5457cd
Libpng-devel
Sep 18, 2020
b352d1b
Merge pull request #1198 from PokeCodec/patch-1
PikalaxALT Sep 18, 2020
0088f59
Merge pull request #1197 from MeatLoaf3/patch-1
PikalaxALT Sep 19, 2020
56848fb
Update battle_util.c
kiliwily Sep 19, 2020
f1366df
Fix typos
kiliwily Sep 19, 2020
0b59222
Merge pull request #1186 from kiliwily/DocSomeBugs
GriffinRichards Sep 19, 2020
0d3646c
Trainer hill location data
tustin2121 Sep 20, 2020
832be34
More documenting trainer hill
tustin2121 Sep 20, 2020
1d1035a
Merge pull request #1196 from Kurausukun/rename_instruments
GriffinRichards Sep 20, 2020
be9100f
Review changes
tustin2121 Sep 20, 2020
47b5b75
Merge pull request #1201 from tustin2121/tustin2121-patch-8
GriffinRichards Sep 20, 2020
04bf1d4
one more instrument
Kurausukun Sep 24, 2020
541eff3
Merge pull request #1204 from Kurausukun/rename-2
GriffinRichards Sep 24, 2020
66bd1e6
Use constants for item digits
GriffinRichards Sep 25, 2020
e7340ca
Add byte comments to script command table
Sep 25, 2020
31d1238
Add byte comments to mystery event script command table
Sep 25, 2020
3860551
Mark unused script commands
Sep 25, 2020
032669e
Change script command table comment alignment from tabs to spaces
Sep 25, 2020
f8ce2ef
Merge pull request #1206 from ExpoSeed/script-command-comments
GriffinRichards Sep 25, 2020
00b8208
Merge pull request #1205 from GriffinRichards/constants-itemdigits
PikalaxALT Sep 27, 2020
46d748a
Create pull_request_template.md
PikalaxALT Sep 27, 2020
70f7d4f
More concise pull request template
Sep 27, 2020
933e180
Remove breaking change line
Sep 27, 2020
cb69835
Merge pull request #1210 from ExpoSeed/pull-request-template
PikalaxALT Sep 27, 2020
7c697e9
Resolve fakematch CopyGlyphToWindow.
RevoSucks Sep 28, 2020
7f1fa72
:masuda:
RevoSucks Sep 28, 2020
22c6c03
Remove unnecessary comments
RevoSucks Sep 29, 2020
5259898
Replace POKEMON_SLOTS_NUMBER
GriffinRichards Oct 1, 2020
187c96d
rewrite MultiBootWaitCycles as naked function
ipatix Oct 2, 2020
5f17b07
Change toOrrX and toOrrY to u8
Oct 2, 2020
94bfc31
Eliminate most of PR template
Oct 2, 2020
f001250
Merge pull request #1218 from MeatLoaf3/patch-3
PikalaxALT Oct 3, 2020
4a773ce
Merge pull request #1217 from ipatix/fix_O3
PikalaxALT Oct 3, 2020
96e4b43
Documenting where each of the berries are generated in new_game.inc
AsparagusEduardo Oct 4, 2020
5794fc6
Merge branch 'pokemon_expansion' of https://github.com/DizzyEggg/poke…
Oct 4, 2020
9b90a77
Merge pull request #1221 from AsparagusEduardo/Doc-newGameBerries
GriffinRichards Oct 5, 2020
a33d487
Merge pull request #1219 from ExpoSeed/bye-pr-template
GriffinRichards Oct 5, 2020
22db85b
Merge branch 'master' of https://github.com/pret/pokeemerald into syn…
Oct 5, 2020
65a4e06
Add ITEM6_HEAL constants, change move flags to shifts
GriffinRichards Oct 5, 2020
9c43bcb
Delete accidentally pushed file
Oct 6, 2020
8f7e212
Remove *.rl in make clean
Oct 6, 2020
ba18f40
Merge pull request #1225 from ExpoSeed/make-clean-rl
GriffinRichards Oct 6, 2020
13f37cf
Merge pull request #1223 from GriffinRichards/constants-misc
GriffinRichards Oct 6, 2020
2b2be90
start pokenav documentation
ghoulslash Oct 10, 2020
bc4e992
Merge branch 'master' of https://github.com/pret/pokeemerald into syn…
Oct 11, 2020
52ebc42
Document gUnknown_03006298
kageru Oct 7, 2020
4efbdaf
Merge pull request #1227 from kageru/pret
GriffinRichards Oct 11, 2020
f4909b4
align pokenav task funcs and update some pokenav menu bg gfx files
ghoulslash Oct 11, 2020
280c68b
renamed pokenav graphics file fixes
ghoulslash Oct 11, 2020
17a77c9
Merge pull request #1229 from ghoulslash/document
GriffinRichards Oct 11, 2020
1472111
Fix PutAwayDecorationLoop UB comment
GriffinRichards Oct 11, 2020
46212e0
Merge pull request #1230 from GriffinRichards/fixubcomm
GriffinRichards Oct 11, 2020
81ac09a
Merge branch 'master' of https://github.com/pret/pokeemerald into syn…
Oct 12, 2020
90d4359
Fix constants
Oct 13, 2020
3f8d71b
Relocate POKEMON_SLOTS_NUMBER to avoid merge conflict
Oct 13, 2020
a539045
Relocate and redefine POKEMON_SLOTS_NUMBER
Oct 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## **Discord contact info**
<!--- formatted as name#numbers, e.g. PikalaxALT#5823 -->
<!--- Contributors must join https://discord.gg/d5dubZ3 -->
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[terminal]: https://docs.microsoft.com/windows/terminal/get-started
[wsl]: https://docs.microsoft.com/windows/wsl/install-win10

Independently from the specific OS, make sure that the `gcc`, `g++`, `make`, `git`, and `libpng` packages or their equivalents are installed and accessible to the development tools that are used by the project (this means that, for example, on Windows, the packages have to be installed in the WSL environment). The package names and installation methods may vary with each OS.
Independently from the specific OS, make sure that the `gcc`, `g++`, `make`, `git`, and `libpng-dev` packages or their equivalents are installed and accessible to the development tools that are used by the project (this means that, for example, on Windows, the packages have to be installed in the WSL environment). The package names and installation methods may vary with each OS.

Install the devkitARM toolchain of devkitPro as per [the instructions on their wiki](https://devkitpro.org/wiki/devkitPro_pacman). On Windows, follow the Linux instructions inside WSL as any steps about the Windows installer do not apply.

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ OBJ_DIR := build/emerald
LIBPATH := -L ../../tools/agbcc/lib
else
CC1 = $(shell $(CC) --print-prog-name=cc1) -quiet
override CFLAGS += -mthumb -mthumb-interwork -O2 -mabi=apcs-gnu -mtune=arm7tdmi -march=armv4t -fno-toplevel-reorder -Wno-pointer-to-int-cast
override CFLAGS += -mthumb -mthumb-interwork -O2 -mabi=apcs-gnu -mcpu=arm7tdmi -fno-toplevel-reorder -Wno-pointer-to-int-cast
ROM := pokeemerald_modern.gba
OBJ_DIR := build/modern
LIBPATH := -L "$(dir $(shell $(CC) -mthumb -print-file-name=libgcc.a))" -L "$(dir $(shell $(CC) -mthumb -print-file-name=libc.a))"
Expand Down Expand Up @@ -178,7 +178,7 @@ mostlyclean: tidy
rm -f $(SAMPLE_SUBDIR)/*.bin
rm -f $(CRY_SUBDIR)/*.bin
rm -f $(MID_SUBDIR)/*.s
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' -o -iname '*.rl' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
rm -f $(DATA_ASM_SUBDIR)/layouts/layouts.inc $(DATA_ASM_SUBDIR)/layouts/layouts_table.inc
rm -f $(DATA_ASM_SUBDIR)/maps/connections.inc $(DATA_ASM_SUBDIR)/maps/events.inc $(DATA_ASM_SUBDIR)/maps/groups.inc $(DATA_ASM_SUBDIR)/maps/headers.inc
find $(DATA_ASM_SUBDIR)/maps \( -iname 'connections.inc' -o -iname 'events.inc' -o -iname 'header.inc' \) -exec rm {} +
Expand Down
7 changes: 7 additions & 0 deletions asm/macros/event.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1434,35 +1434,41 @@

@ Sets the color of the text in standard message boxes. 0x00 produces blue (male) text, 0x01 produces red (female) text,
@ 0xFF resets the color to the default for the current OW's gender, and all other values produce black text.
@ Used only in FireRed/LeafGreen, does nothing in Emerald.
.macro textcolor color:req
.byte 0xc7
.byte \color
.endm

@ The exact purpose of this command is unknown, but it is related to the blue help-text box that appears on the bottom
@ of the screen when the Main Menu is opened.
@ Used only in FireRed/LeafGreen, does nothing in Emerald.
.macro loadhelp pointer:req
.byte 0xc8
.4byte \pointer
.endm

@ The exact purpose of this command is unknown, but it is related to the blue help-text box that appears on the bottom of
@ the screen when the Main Menu is opened.
@ Used only in FireRed/LeafGreen, does nothing in Emerald.
.macro unloadhelp
.byte 0xc9
.endm

@ After using this command, all standard message boxes will use the signpost frame.
@ Used only in FireRed/LeafGreen, does nothing in Emerald.
.macro signmsg
.byte 0xca
.endm

@ Ends the effects of signmsg, returning message box frames to normal.
@ Used only in FireRed/LeafGreen, does nothing in Emerald.
.macro normalmsg
.byte 0xcb
.endm

@ Compares the value of a hidden variable to a dword.
@ Used only in FireRed/LeafGreen, does nothing in Emerald.
.macro comparehiddenvar a:req, value:req
.byte 0xcc
.byte \a
Expand All @@ -1489,6 +1495,7 @@
.endm

@ Sets worldmapflag to 1. This allows the player to Fly to the corresponding map, if that map has a flightspot.
@ Used only in FireRed/LeafGreen, does nothing in Emerald.
.macro setworldmapflag worldmapflag:req
.byte 0xd0
.2byte \worldmapflag
Expand Down
91 changes: 59 additions & 32 deletions asm/macros/music_voice.inc
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
.macro voice_directsound base_midi_key, pan, sample_data_pointer, attack, decay, sustain, release
.macro voice_directsound base_midi_key:req, pan:req, sample_data_pointer:req, attack:req, decay:req, sustain:req, release:req
.byte 0
_voice_directsound \base_midi_key, \pan, \sample_data_pointer, \attack, \decay, \sustain, \release
.endm

.macro voice_directsound_no_resample base_midi_key, pan, sample_data_pointer, attack, decay, sustain, release
.macro voice_directsound_no_resample base_midi_key:req, pan:req, sample_data_pointer:req, attack:req, decay:req, sustain:req, release:req
.byte 8
_voice_directsound \base_midi_key, \pan, \sample_data_pointer, \attack, \decay, \sustain, \release
.endm

.macro voice_directsound_alt base_midi_key, pan, sample_data_pointer, attack, decay, sustain, release
.macro voice_directsound_alt base_midi_key:req, pan:req, sample_data_pointer:req, attack:req, decay:req, sustain:req, release:req
.byte 16
_voice_directsound \base_midi_key, \pan, \sample_data_pointer, \attack, \decay, \sustain, \release
.endm

.macro _voice_directsound base_midi_key, pan, sample_data_pointer, attack, decay, sustain, release
.macro _voice_directsound base_midi_key:req, pan:req, sample_data_pointer:req, attack:req, decay:req, sustain:req, release:req
.byte \base_midi_key
.byte 0
.if \pan != 0
Expand All @@ -28,16 +28,22 @@
.byte \release
.endm

.macro voice_square_1 sweep, duty_cycle, attack, decay, sustain, release
_voice_square_1 1, \sweep, \duty_cycle, \attack, \decay, \sustain, \release
.macro voice_square_1 base_midi_key:req, pan:req, sweep:req, duty_cycle:req, attack:req, decay:req, sustain:req, release:req
_voice_square_1 1, \base_midi_key, \pan, \sweep, \duty_cycle, \attack, \decay, \sustain, \release
.endm

.macro voice_square_1_alt sweep, duty_cycle, attack, decay, sustain, release
_voice_square_1 9, \sweep, \duty_cycle, \attack, \decay, \sustain, \release
.macro voice_square_1_alt base_midi_key:req, pan:req, sweep:req, duty_cycle:req, attack:req, decay:req, sustain:req, release:req
_voice_square_1 9, \base_midi_key, \pan, \sweep, \duty_cycle, \attack, \decay, \sustain, \release
.endm

.macro _voice_square_1 type, sweep, duty_cycle, attack, decay, sustain, release
.byte \type, 60, 0
.macro _voice_square_1 type:req, base_midi_key:req, pan:req, sweep:req, duty_cycle:req, attack:req, decay:req, sustain:req, release:req
.byte \type
.byte \base_midi_key
.if \pan != 0
.byte (0x80 | \pan)
.else
.byte 0
.endif
.byte \sweep
.byte (\duty_cycle & 0x3)
.byte 0, 0, 0
Expand All @@ -47,16 +53,23 @@
.byte (\release & 0x7)
.endm

.macro voice_square_2 duty_cycle, attack, decay, sustain, release
_voice_square_2 2, \duty_cycle, \attack, \decay, \sustain, \release
.macro voice_square_2 base_midi_key:req, pan:req, duty_cycle:req, attack:req, decay:req, sustain:req, release:req
_voice_square_2 2, \base_midi_key, \pan, \duty_cycle, \attack, \decay, \sustain, \release
.endm

.macro voice_square_2_alt duty_cycle, attack, decay, sustain, release
_voice_square_2 10, \duty_cycle, \attack, \decay, \sustain, \release
.macro voice_square_2_alt base_midi_key:req, pan:req, duty_cycle:req, attack:req, decay:req, sustain:req, release:req
_voice_square_2 10, \base_midi_key, \pan, \duty_cycle, \attack, \decay, \sustain, \release
.endm

.macro _voice_square_2 type, duty_cycle, attack, decay, sustain, release
.byte \type, 60, 0, 0
.macro _voice_square_2 type:req, base_midi_key:req, pan:req, duty_cycle:req, attack:req, decay:req, sustain:req, release:req
.byte \type
.byte \base_midi_key
.if \pan != 0
.byte (0x80 | \pan)
.else
.byte 0
.endif
.byte 0
.byte (\duty_cycle & 0x3)
.byte 0, 0, 0
.byte (\attack & 0x7)
Expand All @@ -65,33 +78,47 @@
.byte (\release & 0x7)
.endm

.macro voice_programmable_wave wave_samples_pointer, attack, decay, sustain, release
_voice_programmable_wave 3, \wave_samples_pointer, \attack, \decay, \sustain, \release
.macro voice_programmable_wave base_midi_key:req, pan:req, wave_samples_pointer:req, attack:req, decay:req, sustain:req, release:req
_voice_programmable_wave 3, \base_midi_key, \pan, \wave_samples_pointer, \attack, \decay, \sustain, \release
.endm

.macro voice_programmable_wave_alt wave_samples_pointer, attack, decay, sustain, release
_voice_programmable_wave 11, \wave_samples_pointer, \attack, \decay, \sustain, \release
.macro voice_programmable_wave_alt base_midi_key:req, pan:req, wave_samples_pointer:req, attack:req, decay:req, sustain:req, release:req
_voice_programmable_wave 11, \base_midi_key, \pan, \wave_samples_pointer, \attack, \decay, \sustain, \release
.endm

.macro _voice_programmable_wave type, wave_samples_pointer, attack, decay, sustain, release
.byte \type, 60, 0, 0
.macro _voice_programmable_wave type:req, base_midi_key:req, pan:req, wave_samples_pointer:req, attack:req, decay:req, sustain:req, release:req
.byte \type
.byte \base_midi_key
.if \pan != 0
.byte (0x80 | \pan)
.else
.byte 0
.endif
.byte 0
.4byte \wave_samples_pointer
.byte (\attack & 0x7)
.byte (\decay & 0x7)
.byte (\sustain & 0xF)
.byte (\release & 0x7)
.endm

.macro voice_noise period, attack, decay, sustain, release
_voice_noise 4, \period, \attack, \decay, \sustain, \release
.macro voice_noise base_midi_key:req, pan:req, period:req, attack:req, decay:req, sustain:req, release:req
_voice_noise 4, \base_midi_key, \pan, \period, \attack, \decay, \sustain, \release
.endm

.macro voice_noise_alt period, attack, decay, sustain, release
_voice_noise 12, \period, \attack, \decay, \sustain, \release
.macro voice_noise_alt base_midi_key:req, pan:req, period:req, attack:req, decay:req, sustain:req, release:req
_voice_noise 12, \base_midi_key, \pan, \period, \attack, \decay, \sustain, \release
.endm

.macro _voice_noise type, period, attack, decay, sustain, release
.byte \type, 60, 0, 0
.macro _voice_noise type:req, base_midi_key:req, pan:req, period:req, attack:req, decay:req, sustain:req, release:req
.byte \type
.byte \base_midi_key
.if \pan != 0
.byte (0x80 | \pan)
.else
.byte 0
.endif
.byte 0
.byte (\period & 0x1)
.byte 0, 0, 0
.byte (\attack & 0x7)
Expand All @@ -100,25 +127,25 @@
.byte (\release & 0x7)
.endm

.macro voice_keysplit voice_group_pointer, keysplit_table_pointer
.macro voice_keysplit voice_group_pointer:req, keysplit_table_pointer:req
.byte 0x40, 0, 0, 0
.4byte \voice_group_pointer
.4byte \keysplit_table_pointer
.endm

.macro voice_keysplit_all voice_group_pointer
.macro voice_keysplit_all voice_group_pointer:req
.byte 0x80, 0, 0, 0
.4byte \voice_group_pointer
.4byte 0
.endm

.macro cry sample
.macro cry sample:req
.byte 0x20, 60, 0, 0
.4byte \sample
.byte 0xff, 0, 0xff, 0
.endm

.macro cry2 sample
.macro cry2 sample:req
.byte 0x30, 60, 0, 0
.4byte \sample
.byte 0xff, 0, 0xff, 0
Expand Down
2 changes: 1 addition & 1 deletion berry_fix/payload/src/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ u8 HandleWriteSectorNBytes(u8 sectorNum, u8 *data, u16 size)

u8 TryWriteSector(u8 sectorNum, u8 *data)
{
if (ProgramFlashSectorAndVerify(sectorNum, data) != 0) // is damaged?
if (ProgramFlashSectorAndVerify(sectorNum, data)) // is damaged?
{
SetSectorDamagedStatus(SECTOR_DAMAGED, sectorNum); // set damaged sector bits.
return SAVE_STATUS_ERROR;
Expand Down
2 changes: 1 addition & 1 deletion common_syms/battle_tower.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gUnknown_03006298
gFrontierTempParty
2 changes: 1 addition & 1 deletion data/maps/NewMauville_Inside/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
"script": "NewMauville_Inside_EventScript_ItemUltraRope",
"script": "NewMauville_Inside_EventScript_ItemUltraBall",
"flag": "FLAG_ITEM_NEW_MAUVILLE_ULTRA_BALL"
},
{
Expand Down
34 changes: 17 additions & 17 deletions data/mystery_event_script_cmd_table.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

.align 2
gMysteryEventScriptCmdTable:: @ 82DED2C
.4byte MEScrCmd_nop
.4byte MEScrCmd_checkcompat
.4byte MEScrCmd_end
.4byte MEScrCmd_setmsg
.4byte MEScrCmd_setstatus
.4byte MEScrCmd_runscript
.4byte MEScrCmd_initramscript
.4byte MEScrCmd_setenigmaberry
.4byte MEScrCmd_giveribbon
.4byte MEScrCmd_givenationaldex
.4byte MEScrCmd_addrareword
.4byte MEScrCmd_setrecordmixinggift
.4byte MEScrCmd_givepokemon
.4byte MEScrCmd_addtrainer
.4byte MEScrCmd_enableresetrtc
.4byte MEScrCmd_checksum
.4byte MEScrCmd_crc
.4byte MEScrCmd_nop @ 0x00
.4byte MEScrCmd_checkcompat @ 0x01
.4byte MEScrCmd_end @ 0x02
.4byte MEScrCmd_setmsg @ 0x03
.4byte MEScrCmd_setstatus @ 0x04
.4byte MEScrCmd_runscript @ 0x05
.4byte MEScrCmd_initramscript @ 0x06
.4byte MEScrCmd_setenigmaberry @ 0x07
.4byte MEScrCmd_giveribbon @ 0x08
.4byte MEScrCmd_givenationaldex @ 0x09
.4byte MEScrCmd_addrareword @ 0x0a
.4byte MEScrCmd_setrecordmixinggift @ 0x0b
.4byte MEScrCmd_givepokemon @ 0x0c
.4byte MEScrCmd_addtrainer @ 0x0d
.4byte MEScrCmd_enableresetrtc @ 0x0e
.4byte MEScrCmd_checksum @ 0x0f
.4byte MEScrCmd_crc @ 0x10
gMysteryEventScriptCmdTableEnd::
Loading