Vixen
c7401864
csharp
public static class ItemStats

What an item does to the wearer's stats: the block computed on equip.

Read the guide page for this →

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)

Used by (1)

  • ItemStatsTestsVixen.Gameplay.Items.Tests