Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PityRoll

Bad-luck protection, soft pity and drop guarantees for Unreal Engine 5.8.

A drop chance of five percent means somebody goes eighty tries without it, and that player does not think variance - that player thinks the game is broken. PityRoll puts a floor under bad luck. It counts consecutive misses per entry, so picking up a common cannot reset the counter that was building towards the rare one.

  • Soft pity: the chance climbs with every miss, from an attempt you choose
  • Hard pity: the guarantee lands on exactly the attempt you named, not one early and not one late
  • The effective chance is a pure function, so the number your UI shows is the number the roll used
  • A natural success inside the pity window consumes the counter exactly once
  • The random value is handed in, so a server, a client prediction and a replay agree
  • Every rule is a pure function the component and the tests both call

Documentation: https://wiki.teufel-engineering.com/en/PityRoll/documentation Support: teufelsilvan@gmail.com

Unreal Engine 5.8 - Win64 - one runtime C++ module - no third-party code - full source included.

🛒 Source-available — see before you buy

This repository contains the full source of a commercial Unreal Engine plugin. It is source-available, not open source: read it, evaluate it, then buy a license to use it. See the Fab Content License Agreement / Unreal Engine EULA (purchase required).

Get it / Buy:

📬 Free UE5 Snippet-Pack

10 ready-to-use C++/Blueprint building blocks (subsystems, versioned saves, async nodes, editor tooling) — MIT licensed. Get it by joining the newsletter — plus a heads-up when something new ships. Double opt-in, unsubscribe in one click, no address sharing.

👉 Get the free pack

© 2026 Silvan Teufel. All rights reserved.

About

Bad-luck protection, soft and hard pity for Unreal Engine 5 - consecutive misses counted per entry, so a common drop cannot reset the counter building towards the rare one; a chance that climbs with every miss, and a guarantee that lands on exactly the attempt you named. Deterministic for server and replay.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages