Skip to content

Commit

Permalink
Battle Item Refactor (#2902)
Browse files Browse the repository at this point in the history
* items that can be used in battle now use battlescripts
* removed ExecuteTableBasedItemEffect_
* taught AI how to use items, removed AI_itemtype/flag
* X-Items store stages raised in holdEffectParam
* USE_ITEM in tests
  • Loading branch information
AgustinGDLV authored Apr 14, 2023
1 parent 48fba7a commit 2eabcea
Show file tree
Hide file tree
Showing 32 changed files with 1,102 additions and 957 deletions.
16 changes: 16 additions & 0 deletions asm/macros/battle_script.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,22 @@
.4byte \jumpInstr
.endm

.macro itemrestorehp
callnative BS_ItemRestoreHP
.endm

.macro itemcurestatus
callnative BS_ItemCureStatus
.endm

.macro itemincreasestat
callnative BS_ItemIncreaseStat
.endm

.macro itemrestorepp
callnative BS_ItemRestorePP
.endm

@ various command changed to more readable macros
.macro cancelmultiturnmoves battler:req
various \battler, VARIOUS_CANCEL_MULTI_TURN_MOVES
Expand Down
Loading

0 comments on commit 2eabcea

Please sign in to comment.