Reward a restart for what was crafted, without paying twice for the same items
Many idle games let players restart for a lasting bonus based on what they made. Calculate it per run and players reset constantly to farm it. Calculate it from the lifetime total and a second reset right away pays out again. This entry pays exactly once for each bit of progress.
Why this works
A reward for a restart must be paid for each thing made only once. Basing it on the lifetime total and subtracting what was already paid means ten small restarts give the same as one big one, so nobody profits from resetting at every chance.
When not to use it
Do not use lifetime totals if you want players to restart often on purpose, as in a game built on short, fast rounds. Pay per round there, and balance the speed of rounds instead of stopping the habit.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 2 common mistakes and the fix
- 26 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 "Reward a restart for what was crafted, without paying twice for the same items" (read_entry idle-prestige-gain-no-double-dip) 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