Vixen
c7401864
csharp
public sealed class LootEntryDefinition

One row of a loot table: an item, or another table.

Read the guide page for this →

Remarks

⚠ A row is either weighted or independent, and the two are different mechanisms. A Weight above zero puts the row in the table's pick — one of the weighted rows wins per roll. A Chance above zero is rolled on its own, in addition to the pick, which is what "and always drops five silver" and "and has a 2 % chance of the mount" are. A row that sets both is a row that means two things, so it is refused at compile time.

Fields and properties (8)

  • public string Item

    The address of the item it drops, or empty when it drops a nested table.

  • public string Table

    The address of the nested table it rolls, or empty when it drops an item.

  • public float Weight

    How likely it is against the other weighted rows. Zero keeps it out of the pick.

  • public float Chance

    Its own chance, from zero to one, rolled independently of the pick.

  • public bool UsesPity

    Whether the table's pity policy applies to this row.

  • public int Minimum

    The fewest it drops.

  • public int Maximum

    The most it drops.

  • public List<RequirementDefinition> Conditions

    What has to be true of the kill for this row to be in the table at all.

Used by (16)

  • ReferenceTestsMmo.Content.Tests
  • ContentVixen.Editor.Gameplay.Loot.Tests
  • LootOutlineVixen.Editor.Gameplay.Loot
  • LootOutlineTestsVixen.Editor.Gameplay.Loot.Tests
  • LootSimulatorTestsVixen.Editor.Gameplay.Loot.Tests
  • LootTableModelVixen.Editor.Gameplay.Loot
  • LootTableModelTestsVixen.Editor.Gameplay.Loot.Tests
  • ContentVixen.Gameplay.Loot.Tests
  • LootEntryVixen.Gameplay.Loot
  • LootLibraryVixen.Gameplay.Loot
  • LootLibraryTestsVixen.Gameplay.Loot.Tests
  • LootRollTestsVixen.Gameplay.Loot.Tests
  • LootTableDefinitionVixen.Gameplay.Loot
  • TypeRegistrationVixen.Gameplay.Loot
  • Vixen_Gameplay_Loot_LootEntryDefinitionSerializerVixen.Gameplay.Loot
  • Vixen_Gameplay_Loot_LootTableDefinitionSerializerVixen.Gameplay.Loot