summaryrefslogtreecommitdiff
path: root/src/poweruphax.S
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/poweruphax.S30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/poweruphax.S b/src/poweruphax.S
index 43480c3..a4c7f14 100644
--- a/src/poweruphax.S
+++ b/src/poweruphax.S
@@ -838,6 +838,36 @@ Wm2dPlayerDrawHS:
.extern draw__21dHammerSuitRenderer_cFv
.extern draw__21dPlayerModelHandler_cFv
+
+
+
+.global HammerGabonRock
+HammerGabonRock:
+ # r27 = apOther
+ # r28 = apThis
+ # r29 = objOther
+ # r31 = objThis
+ lbz r0, 0x2D(r27)
+ cmpwi r0, 19
+ bne hgrExit
+
+
+
+ lbz r0, 0xA1(r28)
+ ori r0, r0, 2
+ stb r0, 0xA1(r28)
+hgrExit:
+ lwz r27, 0x2C(r1)
+ lwz r28, 0x30(r1)
+ lwz r29, 0x34(r1)
+ lwz r30, 0x38(r1)
+ lwz r31, 0x3C(r1)
+ lwz r0, 0x44(r1)
+ mtlr r0
+ addi r1, r1, 0x40
+ blr
+
+
.data
PowerupSounds: