Spielerando

Show drop chances as whole percents that really add up to 100

When three equal rewards are shown as 33 percent each, the list adds up to 99 and a careful player writes in to ask where the rest went. Simple rounding cannot fix this. This entry gives the AI a method that always ends on the exact total.

Why this works

Rounding each value alone breaks the total, because the lost bits are never put back. Handing out the leftover to the entries that lost the most keeps every shown value within a hair of the truth and makes the list add up to exactly a whole.

When not to use it

Showing exact percents is the wrong thing when chances change during play, as with luck bonuses, or when a promise of exactness invites rules and disputes. Then show broad words such as rare and common instead of numbers.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 3 common mistakes and the fix
  • 24 lines of example code with 5 checks that pass
  • How your AI shows you that it works

Say this to your AI

Use the Spielerando entry "Show drop chances as whole percents that really add up to 100" (read_entry drop-chances-that-add-up-to-100) in my game. Build it step by step, and show me how you checked that it works.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP