Case Battles

Case Battles involves users opening cases against each other. The user with the highest total item value wins the entire pot (in standard 1v1 mode).

Client -> Server Events

battles:create Creates a new battle lobby.

  • Payload:

    {
        "gamemode": "1v1", // "1v1", "1v1v1", "1v1v1v1", "2v2", "2v2v2", "3v3"
        "battleMode": "normal", // "normal", "share", "pointRush", "jackpot"
        "cases": [
            { "id": "case-id-1", "quantity": 2 },
        ],
        "isBot": false, 
        "isPrivate": false,
        "isReversed": false, // Inverse Mode
        "isFastMode": false,
        "isLastChance": false,
        "fundingOptions": {
            "percentage": 50, // 0-100% (Partial Slot Funding)
            "minDeposit": 10,
            "period": "week", // "all", "day", "week", "month"
            "onlyAffiliates": true
        }
    }
  • Response: battles:create with { status: true, gameID: "uuid" }.

battles:join Joins an existing battle lobby.

  • Payload:

battles:leave Leaves the waiting lobby and refunds the user.

  • Payload: { "gameID": "uuid" }

battles:sponsor Creators can sponsor (pay for) someone else's spot.

  • Payload: { "gameID": "uuid", "spot": 1 }

battles:details Request the full state of a specific game.

  • Payload: { "gameID": "uuid" }

battles:games Fetch the list of all active/waiting battles.

  • Response: battles:games

battles:list Fetch a paginated list of battles with filters.

  • Payload:

  • Response: battles:list


Server -> Client Events

battles:details Emitted when someone joins, leaves, or a user explicitly requests details.

  • Payload:

battles:pf Emitted when the game starts, sharing the Provably Fair commitment.

  • Payload: { "serverSeedCommitment": "hash", "publicSeed": "str", "round": 1, "gameID": "uuid" }

battles:spin Emitted for every round. Contains the items unboxed by each participant.

  • Payload:

battles:result Emitted when the game finishes.

  • Payload:

battles:proof Explicit PF reveal event sent alongside the result.

  • Payload: { "serverSeed": "...", "publicSeed": "...", "gameID": "..." }


Key Game Concepts

  1. Battle Modes:

    • Normal: Highest total value wins.

    • Share: Total pot split equally among all players.

    • Point Rush: Round-by-round points based on highest pull.

    • Jackpot: Weighted raffle based on unboxed value.

  2. Options:

    • Inverse: Lowest value wins. (Disabled in Share Mode)

    • Last Chance: Only the final round counts for selection. (Disabled in Share Mode)

    • Fast Mode: Spins and delays are 50% faster.

    • Partial Slot Funding: Fund slots for other players with different criterias and funding percentage.

  3. Teams:

    • Supported in all modes. Points and values are aggregated per team (e.g., 2v2v2 = 3 teams).

Last updated