Table of Contents
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.Object ModContent ModVanillaContent BTD_Mod_Helper.Api.Towers.ModVanillaContent<Il2CppAssets.Scripts.Models.Towers.TowerModel> ModVanillaUpgrade
Changes the base cost
public virtual int Cost { get; }
The id of the Upgrade that this should modify all TowerModels that use
Use UpgradeType.[upgrade]
public abstract string UpgradeId { get; }
Change the UpgradeModel for this upgrade
public virtual void Apply(UpgradeModel upgradeModel);
upgradeModel
Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradeModel
Gets the TowerModels that this will affect in the GameModel
public override System.Collections.Generic.IEnumerable<TowerModel> GetAffected(GameModel gameModel);
gameModel
Il2CppAssets.Scripts.Models.GameModel
System.Collections.Generic.IEnumerable<Il2CppAssets.Scripts.Models.Towers.TowerModel>