Spielerando

Watching ads for energy pays twice when the "finished" message arrives twice

Rewarded ads for a bit of energy need three guards: a daily limit, a pause between ads and protection against a repeated notice from the ad system. Here is how they work together, and from when the pause is counted.

Why this works

A reward should follow the event that earned it, not the message that reports it. Giving it once per unique token makes repeats harmless, and the order of the checks decides what the player is told, so the honest answer comes first.

When not to use it

Skip it if your game shows no ads, or if watching one is a rare, optional extra without a real reward. Then the limits and pauses protect nothing; keep a single plain check that the same ad is not paid twice.

In the full entry

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

Say this to your AI

Use the Spielerando entry "Watching ads for energy pays twice when the "finished" message arrives twice" (read_entry puzzle-ad-reward-cap-cooldown-duplicate) 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