RoR2-ChensGradiusMod

Gradius Mod in Risk of Rain 2.

View on GitHub

ChensGradiusMod

Chen.GradiusMod.Items

ItemBase Class

The base class of the items of this mod.

public abstract class ItemBase : Chen.GradiusMod.Modules.ModuleBase

Inheritance System.Object 🡒 ModuleBase 🡒 ItemBase

Derived
↳ ItemBase<T>

Properties  
configCategoryPrefix The prefix of the config section that is used by the module, e.g. “Items” or “Artifacts”.
displayName The display name of the item.
iconResource The icon of the item.
itemDef The ItemDef of this item. Available after SetupAttributes.
itemIsAIBlacklisted If true, AI will not receive this item.
itemTags The tags of the item.
itemTier The tier of the item.
modelResource The pickup model of the item.
tokenPrefix The prefix of the language tokens of the item.
Methods  
GetCount(CharacterBody) Gets the number of this item the body has.
GetCount(CharacterMaster) Gets the number of this item the master has.
GetCountSpecific(CharacterBody, ItemDef) Gets the number of a specific item the body has.
SetupAttributes() Creates and registers the definitions of the module to the game, such as the ItemDef or the ArtifactDef.