Skip to content

Commit

Permalink
Fix for v42.1
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Apr 11, 2024
1 parent 447c66e commit e9e8cb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions BloonsTD6 Mod Helper/LATEST.md
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
- Fixes for BTD6 v42.0

This Mod Helper update will not be able to be made via the in game Mod Browser.

### Note for Modders

A large number of mods will need to be updated for this patch, as the namespace
for `SpriteReference`, `PrefabReference`, and `AudioSourceReference` has been changed from `Il2CppAssets.Scripts.Utils`
to `Il2CppNinjaKiwi.Common.ResourceUtils`.
- Fixed a patch for BTD6 v42.1
2 changes: 1 addition & 1 deletion BloonsTD6 Mod Helper/ModHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace BTD_Mod_Helper;
public static class ModHelper
{
internal const string Name = "BloonsTD6 Mod Helper";
internal const string Version = "3.1.18";
internal const string Version = "3.1.19";
internal const string RepoOwner = "gurrenm3";
internal const string RepoName = "BTD-Mod-Helper";
internal const string Description =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal static class HeroUpgradeDetails_OnUpgradePanelScroll
private static bool Prefix(HeroUpgradeDetails __instance, ref Il2CppReferenceArray<HeroUpgradeButton> __state)
{
__state = __instance.heroUpgrades;
if (ModTowerHelper.ModTowerCache.TryGetValue(__instance.selectedHeroId, out var tower) &&
if (ModTowerHelper.ModTowerCache.TryGetValue(__instance.SelectedHeroId, out var tower) &&
tower is ModHero {MaxLevel: < 20} hero)
{
__instance.heroUpgrades = __instance.heroUpgrades.Take(hero.MaxLevel).ToIl2CppReferenceArray();
Expand Down

0 comments on commit e9e8cb4

Please sign in to comment.