Vixen
caa30e12
csharp
public sealed class ItemTemplate

An item with its names resolved: the form a roll, a tooltip and a stat block run on.

Read the guide page for this →

Fields and properties (14)

  • public ItemDefinition Definition

    What it was compiled from.

  • public DefId Id

    Its id — what an ItemInstance names.

  • public GameplayTag Slot

    Which equipment slot it goes in, or None.

  • public ItemRarityTemplate? Rarity

    Its rarity, or null when the definition named none.

  • public int ItemLevel

    How good it is.

  • public int MaximumStack

    How many fit in one container slot. Never below one.

  • public bool IsStackable

    Whether more than one fits in a slot.

  • public int MaximumDurability

    How much wear it takes. Zero is indestructible.

  • public int Sockets

    How many sockets it has.

  • public ItemBinding Binding

    When it stops being tradeable.

  • public ReadOnlySpan<GameplayTag> Tags

    What it is.

  • public ReadOnlySpan<Modifier> Stats

    What it grants before affixes, with no source stamped on.

  • public ReadOnlySpan<AffixTemplate> AffixPool

    Every affix it could roll, in a canonical order, before the per-item level and tag filter.

  • public int AffixCount

    How 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