Verifiable randomness
Raid results come from MagicBlock VRF, a verifiable random function service on Solana. When a sheriff raids, the game asks MagicBlock's oracle for a random number. The oracle answers on chain with the number and a proof that it was produced correctly, so neither the sheriff, the team nor the oracle can choose the result.
The game only accepts an answer signed for this program. An answer from anywhere else, or one meant for another game, is refused.
The roll
One random draw decides everything about a raid:
- Hit or miss. 50% of draws are a hit.
- How much. On a hit, a second part of the draw picks a share between 5% and 20%, every value in the range equally likely.
- The take. That share of the target's stash, as it is when the answer lands, moves to the sheriff's loot.
A miss moves nothing. Either way, the slot can't raid again for 4 hours.
Who gets raided
On this site, Raid picks a target for you at random from every hideout big enough to raid, except your own. Every eligible hideout has the same chance, whatever its size.
The program does refuse a raid on your own hideout, and on a hideout with nothing in it.
Safeguards
- Each slot can have only one raid waiting at a time. The cooldown starts when the raid is sent.
- Every answer carries the time its raid was sent. A late answer for an older raid is rejected, so it can't land on a newer one.
- If no answer arrives within 5 minutes, anyone can clear the stuck raid. The sheriff gets the account rent back and nothing moves.
- Every raid and result is public on chain and on the Activity page.
