Skip to content

Commit

Permalink
v35 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Feb 16, 2023
1 parent 64919a4 commit b96f953
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
21 changes: 13 additions & 8 deletions FasterForwardMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using BTD_Mod_Helper.Extensions;
using FasterForward;
using UnityEngine;
using UnityEngine.PlayerLoop;

[assembly: MelonInfo(typeof(FasterForwardMod), ModHelperData.Name, ModHelperData.Version, ModHelperData.RepoOwner)]
[assembly: MelonGame("Ninja Kiwi", "BloonsTD6")]
Expand Down Expand Up @@ -66,9 +67,20 @@ public override void OnUpdate()
{
speed = 25;
}

if (InGame.instance == null) return;

UpdateInGame();

if (speed != lastSpeed)
{
Game.instance.ShowMessage("Fast Forward Speed is now " + speed + "x" + (speed == 3 ? " (Default)" : ""),
1f);
}
}

public static void UpdateInGame()
{
if (SpeedCustom.JustPressed())
{
PopupScreen.instance.ShowSetValuePopup("Custom Fast Forward Speed",
Expand Down Expand Up @@ -103,12 +115,5 @@ public override void OnUpdate()
}

TimeManager.maxSimulationStepsPerUpdate = speed;

if (speed != lastSpeed)
{
Game.instance.ShowMessage("Fast Forward Speed is now " + speed + "x" + (speed == 3 ? " (Default)" : ""),
1f);
}

}
}
3 changes: 1 addition & 2 deletions LATEST.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
- Updated to Mod Helper 3.0
- Customizable Hotkeys
- Fixed for BTD6 v35.0
4 changes: 2 additions & 2 deletions ModHelperData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public static class ModHelperData
{
public const string WorksOnVersion = "34.3";
public const string Version = "1.1.1";
public const string WorksOnVersion = "35.0";
public const string Version = "1.1.2";
public const string RepoOwner = "doombubbles";
public const string RepoName = "faster-forward";
public const string Name = "Faster Forward";
Expand Down

0 comments on commit b96f953

Please sign in to comment.