public sealed class ItemTemplateAn item with its names resolved: the form a roll, a tooltip and a stat block run on.
Fields and properties (14)
public ItemDefinition DefinitionWhat it was compiled from.
public DefId IdIts id — what an ItemInstance names.
public GameplayTag SlotWhich equipment slot it goes in, or None.
public ItemRarityTemplate? RarityIts rarity, or null when the definition named none.
public int ItemLevelHow good it is.
public int MaximumStackHow many fit in one container slot. Never below one.
public bool IsStackableWhether more than one fits in a slot.
public int MaximumDurabilityHow much wear it takes. Zero is indestructible.
public int SocketsHow many sockets it has.
public ItemBinding BindingWhen it stops being tradeable.
public ReadOnlySpan<GameplayTag> TagsWhat it is.
public ReadOnlySpan<Modifier> StatsWhat it grants before affixes, with no source stamped on.
public ReadOnlySpan<AffixTemplate> AffixPoolEvery affix it could roll, in a canonical order, before the per-item level and tag filter.
public int AffixCountHow many affixes an instance of this rolls.
Methods (2)
public bool HasTagUnder(GameplayTagRange range)Whether any of the item's own tags falls under a prefix.
public ItemInstance Create(int stack = 1, uint seed = 0)A fresh instance of this item: full durability, unrolled unless it has affixes.
Used by (19)
- CoverageTestsMmo.Content.Tests
- ReferenceTestsMmo.Content.Tests
- LootOutlineVixen.Editor.Gameplay.Loot
- LootSimulatorVixen.Editor.Gameplay.Loot
- AffixTemplateVixen.Gameplay.Items
- ConservationOracleTestsVixen.Gameplay.Inventory.Tests
- ContainerSetVixen.Gameplay.Inventory
- ContentVixen.Gameplay.Inventory.Tests
- ItemAffixTestsVixen.Gameplay.Items.Tests
- ItemAffixesVixen.Gameplay.Items
- ItemInstanceTestsVixen.Gameplay.Items.Tests
- ItemLibraryVixen.Gameplay.Items
- ItemLibraryTestsVixen.Gameplay.Items.Tests
- ItemStatsVixen.Gameplay.Items
- ItemStatsTestsVixen.Gameplay.Items.Tests
- LootLibraryVixen.Gameplay.Loot
- LootLibraryTestsVixen.Gameplay.Loot.Tests
- LootResultVixen.Gameplay.Loot
- SalvageRecipeVixen.Gameplay.Loot