Lucky Capsule: Gacha Pulls, Rarity Tiers and Pity Kit
README.md
gacha
The one module a game uses: require("gachaKit.gacha"). Setup, banners (defineBanner), pulls (pull(banner, count, cb) asks the authority), the odds the panel shows (odds), the local player's pity, collection and history, events (on: pull, new, duplicate, refused, ...), currency adapters for money that is not an economyKit currency (setCurrency), per-player luck on the authority (setModifiers, setModifierSource), grants and gifts on the authority, and the screen (open, close, setPresentation, setLook). It wires the authority to economyKit's bank and the "gachaKit" multiplayer channel, and starts GachaHost by itself.