Skip to content

Commit

Permalink
[BotW] Fix mastercycle charged boost in FPS++
Browse files Browse the repository at this point in the history
Previously it wasn't possible to rev your mastercycle to get a charged speed boost. Should be fixed now!
  • Loading branch information
Crementif committed Apr 18, 2023
1 parent 2cfeafa commit 2b2e3f1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/BreathOfTheWild/Mods/FPS++/patch_Cutscene.asm
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ fmuls f12, f7, f12

; Subtract the time that it took for the actual frame to render and make sure that it's not negative (which means a frame already took longer to render then the FPS limit)
fsubs f12, f12, f10
lis r12, const_0.0@ha
lfs f7, const_0.0@l(r12)
lis r11, const_0.0@ha
lfs f7, const_0.0@l(r11)
fcmpu cr0, f7, f12
ble .+0x8
fmr f12, f7
Expand Down
6 changes: 3 additions & 3 deletions src/BreathOfTheWild/Mods/FPS++/patch_GameSpeed.asm
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ const_0.0:
const_0.5:
.float 0.5
const_1:
.float 1
.float 1.0
const_1.5:
.float 1.5
const_30:
.float 30
.float 30.0
const_60:
.float 60
.float 60.0

timerTickSpeed:
busSpeed:
Expand Down
17 changes: 17 additions & 0 deletions src/BreathOfTheWild/Mods/FPS++/patch_MastercycleSpeed.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[BotW_MastercycleSpeed_V208]
moduleMatches = 0x6267BFD0

.origin = codecave

0x100136B4 = originalMotorcycleBoostSpeed:


_changeMotorcycleBoostSpeed:
lfs f0, originalMotorcycleBoostSpeed@l(r9)
lis r9, averageFPS1@ha
lfs f8, averageFPS1@l(r9)
fdivs f0, f0, f8
blr


0x0209FFC0 = bla _changeMotorcycleBoostSpeed

0 comments on commit 2b2e3f1

Please sign in to comment.