Vixen
c7401864
csharp
public sealed class AffixTemplate

An affix with its names resolved and its ranges compiled.

Read the guide page for this →

Fields and properties (5)

  • public AffixDefinition Definition

    What it was compiled from.

  • public DefId Id

    Its id — what a RolledAffix names.

  • public float Weight

    How likely it is against the others in its pool. Never negative.

  • public ReadOnlySpan<AffixStat> Stats

    What it does, with its ranges.

  • public ReadOnlySpan<GameplayTag> Tags

    What this affix is.

Methods (1)

  • public bool AppliesTo(ItemTemplate item)

    Whether it can roll on an item at all.

Used by (6)

  • ItemAffixTestsVixen.Gameplay.Items.Tests
  • ItemAffixesVixen.Gameplay.Items
  • ItemLibraryVixen.Gameplay.Items
  • ItemLibraryTestsVixen.Gameplay.Items.Tests
  • ItemStatsVixen.Gameplay.Items
  • ItemTemplateVixen.Gameplay.Items