diff --git a/BloonsTD6 Mod Helper/LATEST.md b/BloonsTD6 Mod Helper/LATEST.md index 5b8b74152..e8bbb843d 100644 --- a/BloonsTD6 Mod Helper/LATEST.md +++ b/BloonsTD6 Mod Helper/LATEST.md @@ -1,3 +1,4 @@ - Fixed ModSettingHotkeys to allow easier overlap with vanilla hotkeys - Fixed filtering mods menu empty page -- Fixes for ModSettingEnums (thanks Baydock!) \ No newline at end of file +- Fixes for ModSettingEnums (thanks Baydock!) +- Added BuffLocsName and BuffIconName properties to ModBuffIcons for clarity when manually applying them \ No newline at end of file diff --git a/Shared/Api/Display/ModBuffIcon.cs b/Shared/Api/Display/ModBuffIcon.cs index 07a59db0a..ada1a6c0b 100644 --- a/Shared/Api/Display/ModBuffIcon.cs +++ b/Shared/Api/Display/ModBuffIcon.cs @@ -63,8 +63,8 @@ public abstract class ModBuffIcon : NamedModContent /// The support model to apply to public void ApplyTo(SupportModel model) { - model.buffLocsName = Icon; - model.buffIconName = Id; + model.buffLocsName = BuffLocsName; + model.buffIconName = BuffIconName; model.isGlobal = GlobalRange; model.maxStackSize = MaxStackSize; model.onlyShowBuffIfMutated = OnlyShowBuffIfMutated; @@ -77,11 +77,21 @@ public void ApplyTo(SupportModel model) /// The support model to apply to public void ApplyTo(TowerBehaviorBuffModel model) { - model.buffLocsName = Icon; - model.buffIconName = Id; + model.buffLocsName = BuffLocsName; + model.buffIconName = BuffIconName; model.isGlobalRange = GlobalRange; model.maxStackSize = MaxStackSize; } + + /// + /// What should go in a Model's buffLocsName field + /// + public string BuffLocsName => Icon; + + /// + /// What should go in a Model's buffIconName field + /// + public string BuffIconName => Id; /// public override void Register() diff --git a/Shared/ModHelper.cs b/Shared/ModHelper.cs index 6d9b8fef8..5cd6c73a6 100644 --- a/Shared/ModHelper.cs +++ b/Shared/ModHelper.cs @@ -18,7 +18,7 @@ public static class ModHelper #region ModHelperData for the Mod Helper internal const string Name = "BloonsTD6 Mod Helper"; - internal const string Version = "3.1.2"; + internal const string Version = "3.1.3"; 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";