Skip to content

Commit

Permalink
Merge pull request #2330 from rh-hideout/1.1.0
Browse files Browse the repository at this point in the history
Version 1.1.0
  • Loading branch information
ghoulslash authored Sep 17, 2022
2 parents 17fecd5 + 8bbe1b9 commit b75c8e0
Show file tree
Hide file tree
Showing 144 changed files with 5,039 additions and 14,666 deletions.
6 changes: 3 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ cd /mnt/c/Users/<user>/Desktop/decomps
> Note 2: If the path has spaces, then the path must be wrapped with quotations, e.g. `cd "/mnt/c/users/<user>/Desktop/decomp folder"`.
> Note 3: Windows path names are case-insensitive so adhering to capitalization isn't needed
</details>
If this works, then proceed to [Installation](#installation).

Otherwise, ask for help on Discord or IRC (see [README.md](README.md)), or continue reading below for [Windows instructions using msys2](#windows-msys2).
Expand Down Expand Up @@ -216,7 +216,7 @@ Note that the directory **must exist** in Windows. If you want to store pokeemer
> Note 1: If the path has spaces, then the path must be wrapped with quotations, e.g. `cd "c:/users/<user>/Desktop/decomp folder"`.
> Note 2: Windows path names are case-insensitive so adhering to capitalization isn't needed
</details>
If this works, then proceed to [Installation](#installation). Otherwise, ask for help on Discord or IRC (see [README.md](README.md)).
## macOS
Expand Down Expand Up @@ -539,7 +539,7 @@ devkitARM is now installed.
devkitARM is now installed.

### Installing devkitARM on Arch Linux

1. Follow [devkitPro's instructions](https://devkitpro.org/wiki/devkitPro_pacman#Customising_Existing_Pacman_Install) to configure `pacman` to download devkitPro packages.
2. Install `gba-dev`: run the following command as root.
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ tidynonmodern:
tidymodern:
rm -f $(MODERN_ROM_NAME) $(MODERN_ELF_NAME) $(MODERN_MAP_NAME)
rm -rf $(MODERN_OBJ_DIR_NAME)

ifneq ($(MODERN),0)
$(C_BUILDDIR)/berry_crush.o: override CFLAGS += -Wno-address-of-packed-member
endif
Expand Down Expand Up @@ -412,7 +412,7 @@ LD_SCRIPT := ld_script.txt
LD_SCRIPT_DEPS := $(OBJ_DIR)/sym_bss.ld $(OBJ_DIR)/sym_common.ld $(OBJ_DIR)/sym_ewram.ld
else
LD_SCRIPT := ld_script_modern.txt
LD_SCRIPT_DEPS :=
LD_SCRIPT_DEPS :=
endif

$(OBJ_DIR)/ld_script.ld: $(LD_SCRIPT) $(LD_SCRIPT_DEPS)
Expand Down
80 changes: 40 additions & 40 deletions asm/macros/battle_ai_script.inc
Original file line number Diff line number Diff line change
Expand Up @@ -558,151 +558,151 @@
.2byte \param1
.4byte \param2
.endm

.macro get_ally_chosen_move
.byte 0x63
.endm

.macro if_has_no_attacking_moves battler:req, param1:req
.byte 0x64
.byte \battler
.4byte \param1
.endm

.macro get_hazards_count battler:req, effect:req
.byte 0x65
.byte \battler
.2byte \effect
.endm

.macro if_doesnt_hold_berry battler:req, ptr:req
.byte 0x66
.byte \battler
.4byte \ptr
.endm

.macro if_share_type battler1:req, battler2:req, ptr:req
.byte 0x67
.byte \battler1
.byte \battler2
.4byte \ptr
.endm

.macro if_cant_use_last_resort battler:req, ptr:req
.byte 0x68
.byte \battler
.4byte \ptr
.endm

.macro if_has_move_with_split battler:req, split:req, ptr:req
.byte 0x69
.byte \battler
.byte \split
.4byte \ptr
.endm

.macro if_has_no_move_with_split battler:req, split:req, ptr:req
.byte 0x6A
.byte \battler
.byte \split
.4byte \ptr
.endm

.macro if_physical_moves_unusable attacker:req, target:req, ptr:req
.byte 0x6B
.byte \attacker
.byte \target
.4byte \ptr
.endm

.macro if_ai_can_go_down ptr:req
.byte 0x6C
.4byte \ptr
.endm

.macro if_has_move_with_type battler:req, type:req, ptr:req
.byte 0x6D
.byte \battler
.byte \type
.4byte \ptr
.endm

.macro if_no_move_used battler:req, ptr:req
.byte 0x6E
.byte \battler
.4byte \ptr
.endm

.macro if_has_move_with_flag battler:req, flag:req, ptr:req
.byte 0x6F
.byte \battler
.4byte \flag
.4byte \ptr
.endm

.macro if_battler_absent battler:req, ptr:req
.byte 0x70
.byte \battler
.4byte \ptr
.endm

.macro if_grounded battler:req, ptr:req
.byte 0x71
.byte \battler
.4byte \ptr
.endm

.macro get_best_dmg_hp_percent
.byte 0x72
.endm

.macro get_curr_dmg_hp_percent
.byte 0x73
.endm

.macro get_move_split_from_result
.byte 0x74
.endm

.macro get_considered_move_split
.byte 0x75
.endm

.macro get_considered_move_target
.byte 0x76
.endm

.macro compare_speeds battler1:req, battler2:req
.byte 0x77
.byte \battler1
.byte \battler2
.endm

.macro is_wakeup_turn battler:req
.byte 0x78
.byte \battler
.endm

.macro if_has_move_with_accuracy_lt battler:req, value:req, ptr:req
.byte 0x79
.byte \battler
.byte \value
.4byte \ptr
.endm

@ useful script macros
.macro if_has_physical_move battler:req, ptr:req
if_has_move_with_split \battler, SPLIT_PHYSICAL, \ptr
.endm

.macro if_has_no_physical_move battler:req, ptr:req
if_has_no_move_with_split \battler, SPLIT_PHYSICAL, \ptr
.endm

.macro if_has_special_move battler:req, ptr:req
if_has_move_with_split \battler, SPLIT_SPECIAL, \ptr
.endm

.macro if_has_no_special_move battler:req, ptr:req
if_has_no_move_with_split \battler, SPLIT_SPECIAL, \ptr
.endm
Expand All @@ -714,33 +714,33 @@
.macro get_curr_move_type
get_type AI_TYPE_MOVE
.endm

.macro get_user_type1
get_type AI_TYPE1_USER
.endm

.macro get_user_type2
get_type AI_TYPE2_USER
.endm

.macro get_target_type1
get_type AI_TYPE1_TARGET
.endm

.macro get_target_type2
get_type AI_TYPE2_TARGET
.endm

.macro if_ability battler:req, ability:req, ptr:req
check_ability \battler, \ability
if_equal 1, \ptr
.endm

.macro if_no_ability battler:req, ability:req, ptr:req
check_ability \battler, \ability
if_equal 0, \ptr
.endm

.macro if_type battler:req, type:req, ptr:req
is_of_type \battler, \type
if_equal 1, \ptr
Expand All @@ -750,20 +750,20 @@
is_of_type \battler, \type
if_equal 0, \ptr
.endm

.macro if_target_faster ptr:req
if_user_goes 1, \ptr
.endm

.macro if_user_faster ptr:req
if_user_goes 0, \ptr
.endm

.macro if_double_battle ptr:req
is_double_battle
if_equal 1, \ptr
.endm

.macro if_not_double_battle ptr:req
is_double_battle
if_equal 0, \ptr
Expand All @@ -772,11 +772,11 @@
.macro if_any_move_disabled battler:req, ptr:req
if_any_move_disabled_or_encored \battler, 0, \ptr
.endm

.macro if_any_move_encored battler:req, ptr:req
if_any_move_disabled_or_encored \battler, 1, \ptr
.endm

.macro call_if_always_hit ptr:req
get_move_accuracy
call_if_eq 0, \ptr
Expand Down
12 changes: 6 additions & 6 deletions asm/macros/battle_anim_script.inc
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,20 @@
.macro stopsound
.byte 0x2f
.endm

@ useful macros
.macro jumpreteq value:req, ptr:req
jumpargeq ARG_RET_ID, \value, \ptr
.endm

.macro jumprettrue ptr:req
jumpreteq TRUE, \ptr
.endm

.macro jumpretfalse ptr:req
jumpreteq FALSE, \ptr
.endm

.macro jumpifdoublebattle ptr:req
createvisualtask AnimTask_IsDoubleBattle, 0
jumprettrue \ptr
Expand All @@ -305,7 +305,7 @@
.hword \launchtemplatearg7
.hword \launchtemplatearg8
.endm

.macro launchtask launchtaskPtr launchtaskPriority launchtaskArgsNo launchtaskarg0 launchtaskarg1 launchtaskarg2 launchtaskarg3 launchtaskarg4 launchtaskarg5 launchtaskarg6 launchtaskarg7 launchtaskarg8
.byte 0x3
.word \launchtaskPtr
Expand All @@ -321,7 +321,7 @@
.hword \launchtaskarg7
.hword \launchtaskarg8
.endm

.macro setblends setblends_value
.byte 0xC
.hword \setblends_value
Expand Down
Loading

0 comments on commit b75c8e0

Please sign in to comment.