summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poweruphax.yaml6
-rw-r--r--src/poweruphax.S6
2 files changed, 12 insertions, 0 deletions
diff --git a/poweruphax.yaml b/poweruphax.yaml
index 07ad22f..24d3115 100644
--- a/poweruphax.yaml
+++ b/poweruphax.yaml
@@ -930,6 +930,12 @@ hooks:
src_addr_pal: 0x800FC9B4
target_func: 'UpdateCalcPowerupResult'
+ - name: FixCalcPowerupResultForMushroom
+ type: branch_insn
+ branch_type: b
+ src_addr_pal: 0x800FC9E8
+ target_func: 'FixCalcPowerupResultForMushroom'
+
# THE WONDERS OF STOCK ITEM SHADOW
# Current size: 0x280
# New size: 0x290
diff --git a/src/poweruphax.S b/src/poweruphax.S
index e2517e7..2779906 100644
--- a/src/poweruphax.S
+++ b/src/poweruphax.S
@@ -1335,6 +1335,12 @@ UpdateCalcPowerupResult:
cprIsDone:
b ContinueFromCalcPowerupResult
+.global FixCalcPowerupResultForMushroom
+.extern ContinueFromFixCalcPowerupResultForMushroom
+FixCalcPowerupResultForMushroom:
+ stb r0, 0xF(r1)
+ li r6, 1
+ b ContinueFromFixCalcPowerupResultForMushroom