Vixen
c7401864
csharp
public sealed class LootContext

What a row's conditions are evaluated against: the kill, not the killer's stats.

Read the guide page for this →

Remarks

An IRequirementContext like everything else, so "only on Heroic", "only above level 60" and "only in Queensdale" are the same requirement algebra a vendor and an ability use. The tags are whatever the caller thinks is true of the drop — the victim's tags, the zone's, the difficulty's — and the values are named numbers it supplies.

Fields and properties (2)

  • public static LootContext Empty

    A context with no tags and no values. Every unconditional row is in.

  • public GameplayTagSet? Tags

    The subject's tags, or null when it has none.

Methods (3)

  • public LootContext(GameplayTagSet? tags = null)

    Makes a context.

  • public LootContext With(string name, float value)

    Supplies a named number a condition can compare against.

  • public bool TryGetValue(AttributeId subject, out float value)

    A number the subject can be asked for.

Used by (4)

  • LootSimulatorVixen.Editor.Gameplay.Loot
  • LootSimulatorTestsVixen.Editor.Gameplay.Loot.Tests
  • LootEvaluatorVixen.Gameplay.Loot
  • LootRollTestsVixen.Gameplay.Loot.Tests