Skip to Main Content

BTD_Mod_Helper​.Api​.Legends​.ModItemArtifact


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.Legends

ModItemArtifact Class

Class for adding a custom Permanent/Item Artifact to the Rogue Legends mode

public abstract class ModItemArtifact : BTD_Mod_Helper.Api.Legends.ModArtifact<ItemArtifactData, ItemArtifactModel>

Inheritance System.ObjectModContentNamedModContentModArtifactBTD_Mod_Helper.Api.Legends.ModArtifact<Il2CppAssets.Scripts.Data.Artifacts.ItemArtifactData,Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel>  ModItemArtifact

Methods

ModItemArtifact.CreateArtifactModel(int, int) Method

Creates the ArtifactModelBase derived model for this Artifact

protected sealed override ItemArtifactModel CreateArtifactModel(int tier, int index);

Parameters

tier System.Int32

0 for Common, 1 for Rare, 2 for Legendary

index System.Int32

Artifact index

Returns

Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
Created Artifact Model

ModItemArtifact.GetId(int) Method

Gets the id this should use for the given index

public sealed override string GetId(int tier);

Parameters

tier System.Int32

Returns

System.String
The ID to use

ModItemArtifact.InstaMonkey(int) Method

The baseId of the Insta Monkey that this Artifact should add to your party for the given tier. Setting this will
handle adding to the Artifact description

public virtual string InstaMonkey(int tier);

Parameters

tier System.Int32

artifact tier 0,1,2

Returns

System.String
tower base id

ModItemArtifact.InstaTiers(int) Method

The baseId of the Insta Monkey that this Artifact should add to your party for the given tier. Setting this will
handle adding to the Artifact description

public virtual int[] InstaTiers(int tier);

Parameters

tier System.Int32

artifact tier 0,1,2

Returns

System.Int32[]
3 length array of tiers [top, middle, bottom]

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