Vixen
c7401864
csharp
public interface IPityStore

Where a run of bad luck is remembered.

Read the guide page for this →

Remarks

An interface, because doc 28 requires this to be durable — "a pity counter that resets on a realm crash is a support ticket" — and durable means a grain, which Gameplay/ may not reference. The realm supplies one backed by Vixen.Live.Persistence; a test and an editor simulation supply MemoryPityStore.

Methods (2)

  • int AttemptsOf(PityKey key)

    How many attempts have failed in a row.

  • void Record(PityKey key, bool hit)

    Records an attempt.

Used by (4)

  • CountingPityStoreVixen.Editor.Gameplay.Loot
  • LootEvaluatorVixen.Gameplay.Loot
  • MemoryPityStoreVixen.Gameplay.Loot
  • ProfilePityStoreVixen.Live.Gameplay