Skip to Main Content

BTD_Mod_Helper​.Api​.Towers​.ModVanillaUpgrade


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Towers

ModVanillaUpgrade Class

ModContent class for modifying all TowerModels that have a given upgrade applied to them

public abstract class ModVanillaUpgrade : BTD_Mod_Helper.Api.Towers.ModVanillaContent<TowerModel>

Inheritance System.ObjectModContentModVanillaContentBTD_Mod_Helper.Api.Towers.ModVanillaContent<Il2CppAssets.Scripts.Models.Towers.TowerModel>  ModVanillaUpgrade

Properties

ModVanillaUpgrade.Cost Property

Changes the base cost

public virtual int Cost { get; }

Property Value

System.Int32

ModVanillaUpgrade.UpgradeId Property

The id of the Upgrade that this should modify all TowerModels that use


Use UpgradeType.[upgrade]

public abstract string UpgradeId { get; }

Property Value

System.String

Methods

ModVanillaUpgrade.Apply(UpgradeModel) Method

Change the UpgradeModel for this upgrade

public virtual void Apply(UpgradeModel upgradeModel);

Parameters

upgradeModel Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradeModel

ModVanillaUpgrade.GetAffected(GameModel) Method

Gets the TowerModels that this will affect in the GameModel

public override System.Collections.Generic.IEnumerable<TowerModel> GetAffected(GameModel gameModel);

Parameters

gameModel Il2CppAssets.Scripts.Models.GameModel

Returns

System.Collections.Generic.IEnumerable<Il2CppAssets.Scripts.Models.Towers.TowerModel>

To learn how to download BTD Mod Helper and install mods, click here