csharp
public static class ItemStatsWhat an item does to the wearer's stats: the block computed on equip.
Remarks
Doc 28 § Items: "the stat block is computed on equip". Not stored on the instance, not replicated, not saved — derived from the definition and the seed at the one moment somebody needs it, which is the whole reason an instance is sixteen bytes.
What comes out is Modifiers, so an equipped item is exactly as much a modifier source as a buff is. The kernel already knows how to remove those exactly, which is what makes unequipping a sword arithmetic rather than a subtraction.
Methods (2)
public static int Compute(ItemLibrary library, in ItemInstance instance, ModifierSource source, ICollection<Modifier> into)Computes what one instance grants.
public static bool IsFunctional(ItemLibrary library, in ItemInstance instance)What a broken item grants, which is nothing — the one rule durability has that is not the game's.
Used by (1)
- ItemStatsTestsVixen.Gameplay.Items.Tests