Table of Contents
Class for adding a custom Artifact to the Rogue Legends mode
public abstract class ModArtifact : BTD_Mod_Helper.Api.NamedModContent
Inheritance System.Object ModContent NamedModContent ModArtifact
Derived
↳ ModArtifact<TData,TModel>
Tier for Common Artifacts
protected const int Common = 0;
Tier for Legendary Artifacts
protected const int Legendary = 2;
Tier for Rare Artifacts
protected const int Rare = 1;
Description for the Common tier of this Artifact
public virtual string DescriptionCommon { get; }
Description for the Legendary tier of this Artifact
public virtual string DescriptionLegendary { get; }
Description for the Rare tier of this Artifact
public virtual string DescriptionRare { get; }
Displayed Name for the Common tier of this Artifact
public virtual string DisplayNameCommon { get; }
Displayed Name for the Legendary tier of this Artifact
public virtual string DisplayNameLegendary { get; }
Displayed Name for the Rare tier of this Artifact
public virtual string DisplayNameRare { get; }
The Icon for this Artifact, either a VanillaSprites constant or custom texture name
public virtual string Icon { get; }
The Icon for this Artifact, either a VanillaSprites constant or custom texture name
public virtual string IconCommon { get; }
The Icon SpriteReference for this Artifact
public virtual SpriteReference IconCommonReference { get; }
Il2CppNinjaKiwi.Common.ResourceUtils.SpriteReference
The Icon for this Artifact, either a VanillaSprites constant or custom texture name
public virtual string IconLegendary { get; }
The Icon SpriteReference for this Artifact
public virtual SpriteReference IconLegendaryReference { get; }
Il2CppNinjaKiwi.Common.ResourceUtils.SpriteReference
The Icon for this Artifact, either a VanillaSprites constant or custom texture name
public virtual string IconRare { get; }
The Icon SpriteReference for this Artifact
public virtual SpriteReference IconRareReference { get; }
Il2CppNinjaKiwi.Common.ResourceUtils.SpriteReference
The Icon SpriteReference for this Artifact
public virtual SpriteReference IconReference { get; }
Il2CppNinjaKiwi.Common.ResourceUtils.SpriteReference
Highest tier this artifact can be at
public virtual int MaxTier { get; }
Lowest tier this artifact can be at
public virtual int MinTier { get; }
The tower set themed rarity frame for the artifact
public virtual TowerSet RarityFrameType { get; }
Il2CppAssets.Scripts.Models.TowerSets.TowerSet
Makes the icon for this artifact smaller to mimic the negative space found on dedicated artifact icons
public virtual bool SmallIcon { get; }
The tiers this artifact has
public System.Collections.Generic.IEnumerable<(int tier,int index)> Tiers { get; }
System.Collections.Generic.IEnumerable<<System.Int32,System.Int32>>
Artifact's description for a given tier
public virtual string Description(int tier);
tier
System.Int32
0 for Common, 1 for Rare, 2 for Legendary
System.String
Displayed description
Gets the icon for a given tier of this artifact
public SpriteReference GetIcon(int tier);
tier
System.Int32
0, 1, or 2
Il2CppNinjaKiwi.Common.ResourceUtils.SpriteReference
icon reference
Gets the id this should use for the given index
public virtual string GetId(int index);
index
System.Int32
1, 2 or 3
System.String
The ID to use
Modifies the game model for a match where this artifact is active at the given tier
public virtual void ModifyGameModel(GameModel gameModel, int tier);
gameModel
Il2CppAssets.Scripts.Models.GameModel
new game model
tier
System.Int32
artifact tier
Triggers when this artifact is activated within the simulation for the given tier
NOTE: Should be robust against potentially being activated again within the same simulation
public virtual void OnActivated(Simulation simulation, int tier);
simulation
Il2CppAssets.Scripts.Simulation.Simulation
current Sim
tier
System.Int32
artifact tier