Skip to content

Commit

Permalink
fix(hammer): Fixes hammer charge attack distance (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadillzzz authored Oct 13, 2021
1 parent 7b7b52d commit 28735b2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
5 changes: 5 additions & 0 deletions hammerChargeDistance.hks
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
HammerChargeDistance:
type: branch
link: true
func: NormaliseHammerCharge
addr: 0x008b84d0
6 changes: 3 additions & 3 deletions normaliseCameraSpeed.s
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
.global NormaliseCameraSpeed
NormaliseCameraSpeed:
fmuls s0, s1, s3
ldr r0, =0x8119d90
ldr r0, [r0]
ldr r0, [r0,#0x14]
ldr r0, =0x8119d90
ldr r0, [r0]
ldr r0, [r0,#0x14]
fmsr s4, r0
mov r0, #0x40000000
fmsr s5, r0
Expand Down
20 changes: 20 additions & 0 deletions normaliseHammerCharge.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.text
.align 4

.global NormaliseHammerCharge
NormaliseHammerCharge:
ldr r0, =0x8119d90
ldr r0, [r0]
ldr r0, [r0,#0x14]
fmsr s12, r0
mov r0, #0x40000000
fmsr s13, r0
fdivs s12, s12, s13
flds s0, [sp]
fmuls s0, s0, s12
fsts s0, [sp]
flds s0, [sp,#8]
fmuls s0, s0, s12
fsts s0, [sp,#8]
ldr r0, [r5]
bx lr

0 comments on commit 28735b2

Please sign in to comment.