Expand description
Bound unlucky reward droughts without reroll loops or hidden probability changes.
PityCounter retains its immediate, Copy behavior. PityDelivery adds
one outstanding reward offer, without changing the legacy counter’s storage.
Neither API owns or consumes randomness. Callers authorize and deduplicate
gameplay events before admission; offer IDs do not authenticate those events.
Structs§
- Pity
Counter - Pity
Delivery - Allocation-free delivery with exactly one pending offer and no history list.
- Pity
Offer - A reward owed, retaining its original natural/guaranteed reason on retry. The host must retain the corresponding reward payload until settlement/reset.
- Pity
Offer Id - Locally issued token: a caller-owned nonzero stream and nonzero sequence. Fields cannot be constructed directly. Tokens are not security credentials.
Enums§
- Pity
Attempt - Admission of one gameplay event. Skipped events never advance the drought.
- Pity
Delivery Error - Rejections leave the delivery instance unchanged.
- Pity
Offer Outcome - Admission result; a reward is only offered, not yet delivered.
- Pity
Outcome - Immediate accepted-attempt result. Natural success wins at the boundary.
- Pity
Settlement - Destination refusal retains the exact offer; acceptance commits once.