Skip to content

Commit

Permalink
Pointing own ModHelperData back at the gurrenm3 repo
Browse files Browse the repository at this point in the history
  • Loading branch information
doombubbles committed Aug 12, 2022
1 parent aa744cd commit db0e8f6
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 18 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-net6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ name: Build net6

on:
push:
branches: [ "3.0_Features" ]
branches:
- '*'
tags:
- '*'
pull_request:
branches: [ "3.0_Features" ]
branches:
- '*'

env:
PROJECT_NAME: Btd6ModHelper
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ name: Build

on:
push:
branches: [ "3.0_Features" ]
branches:
- '*'
tags:
- '*'
pull_request:
branches: [ "3.0_Features" ]
branches:
- '*'

env:
PROJECT_NAME: Btd6ModHelper
Expand Down Expand Up @@ -91,7 +93,7 @@ jobs:

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'doombubbles/BTD-Mod-Helper'
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ env.BLOONSTD6 }}/Mods/${{ env.PROJECT_NAME }}.dll
Expand Down
2 changes: 1 addition & 1 deletion BloonsTD6 Mod Helper/BloonsTD6Mod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public virtual void OnTowerDeselected(Tower tower)
/// <summary>
/// Called right after a Tower is upgraded
/// </summary>
public virtual void OnTowerUpgraded(Tower tower, String upgradeName, TowerModel newBaseTowerModel)
public virtual void OnTowerUpgraded(Tower tower, string upgradeName, TowerModel newBaseTowerModel)
{
}

Expand Down
31 changes: 25 additions & 6 deletions BloonsTD6 Mod Helper/LATEST.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
- Fixed Mod Browser Icons for locally installed mods with no icon
- Added a mod browser setting to toggle re-reusing locally downloaded icons in the mod browser
- Replaced some "is Name null" checks with "is Name null or empty"
- Fixed weird icon fading issue for repeated opening settings menus with collapsed categories
- Recompiled for v32.1 to fix ShowOkPopup method signature change
- Fixed error in logs for closing certain custom menus too fast
# Mod Helper 3.0 Update

A long time in the making, this update finishes the v32.0 fixes for Sprites / Displays and adds a ton of other stuff.

### What's most important to immediately know about installing this update is that it requires [MelonLoader v0.5.5](https://github.com/LavaGang/MelonLoader/suites/7738215183/artifacts/324586390). See the new [Install Guide](https://github.com/gurrenm3/BTD-Mod-Helper/wiki/Install-Guide) page for further details.

The most notable 3.0 addition is a revamped <u>Mods Menu</u> and new <u>In-Game Mod Browser</u>, which you can use to view and download mods updated for 3.0 that have been published on GitHub.
See the [3.0 Update Overview](https://github.com/gurrenm3/BTD-Mod-Helper/wiki/3.0-Update-Overview) page for a more comprehensive list of changes (there's a lot!).

For modders, I've put together a [3.0 Migration Guide](https://github.com/gurrenm3/BTD-Mod-Helper/wiki/%5B3.0%5D-Migration-Guide) page for information about how to best make use of the new features.


Note that this is not a universal fix for every mod broken by v32.0, many mods will still need to apply similar fixes to the ones done internally in Mod Helper before they'll be working again.

Also, this update has been in public alpha for a couple weeks now, but there still may need to be some hotfix updates within the days following this release. Luckily they'll be easily downloadable from right within your BTD6 game :D

Special thanks to Silentstorm, GrahamKracker, CommanderCat, and chrisroberts777 for doing as much testing as they did!

Hope everyone enjoys <3

-doombubbles

![Mods Menu](https://media.discordapp.net/attachments/800115046134186026/1007790104904998932/unknown.png)

![Mod Browser](https://media.discordapp.net/attachments/800115046134186026/1007790297025106040/unknown.png)
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace BTD_Mod_Helper.Patches.Towers;
[HarmonyPatch(typeof(TowerManager), nameof(TowerManager.UpgradeTower))]
internal class TowerManager_UpgradeTower
{
/*[HarmonyPrefix]
[HarmonyPrefix]
internal static bool Prefix(Tower tower, TowerModel def, ref string __state)
{
__state = null;
Expand All @@ -28,5 +28,5 @@ internal static void Postfix(Tower tower, TowerModel def, string __state)
{
ModHelper.PerformHook(mod => mod.OnTowerUpgraded(tower, __state, def));
}
}*/
}
}
2 changes: 1 addition & 1 deletion Shared/Api/Data/ModHelperData.GitHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal string ReadmeUrl

internal string StarsUrl => $"https://www.github.com/{RepoOwner}/{RepoName}/stargazers";
private float splittingStarsAmongst = 1;
internal int Stars => (int) Math.Ceiling(Repository?.StargazersCount ?? 0 / splittingStarsAmongst);
internal int Stars => (int) Math.Ceiling((Repository?.StargazersCount ?? 0) / splittingStarsAmongst);

internal bool HasRequiredRepoData => SemVersion.TryParse(Version, out _) &&
RepoName != null &&
Expand Down
6 changes: 3 additions & 3 deletions Shared/ModHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ public static class ModHelper
#region ModHelperData for the Mod Helper

internal const string Name = "BloonsTD6 Mod Helper";
internal const string Version = "3.0.0-rc3";
internal const string RepoOwner = "doombubbles";
internal const string Version = "3.0.0";
internal const string RepoOwner = "gurrenm3";
internal const string RepoName = "BTD-Mod-Helper";
internal const string Description = "A powerful and easy to use API for modding BTD6. Also the mod that is allowing all of this UI to happen right now :P";
internal const string DllName = "Btd6ModHelper.dll";
internal const string Author = "Gurrenm4 and Doombubbles";

#endregion

internal const string Branch = "main";
internal const string Branch = "master";

/// <summary>
/// Directory where the Mod Helper stores most of its extra info
Expand Down

0 comments on commit db0e8f6

Please sign in to comment.