Rotating ability shop
Warning
Sword Masters was abandoned in October 2024, and many of its assets belong to the group that owned it, so this system can’t be shown running.
You don’t buy abilities from a fixed list in Sword Masters. The shop shows three offers, and every so often they change.
How it works
- Five abilities can be bought, one per rarity: Superjump, Stomp, Burger, Fireball and Laser beam.
- The shop shows three of them, drawn at random, with the more common ones showing up more often.
- A countdown on screen tells you when the offer will change.
- The idea is that every server shows the same three, so switching servers doesn’t get you a different offer.
- The abilities you already own are marked as owned.
Under the hood
The current offer is saved where every server can read it, and when one server rotates it, it tells the others. The base of this system came with the code I inherited and I adapted it to the new game. The portfolio version works out the real odds of each ability (the legendary shows up as often as the rare one) and explains where the servers can end up disagreeing.