You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/protocol-api.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,14 +83,14 @@ The BalatroBot API operates as a finite state machine that mirrors the natural f
83
83
84
84
The game progresses through these states in a typical flow: `MENU` → `BLIND_SELECT` → `SELECTING_HAND` → `ROUND_EVAL` → `SHOP` → `BLIND_SELECT` (or `GAME_OVER`).
85
85
86
-
| State | Value | Description | Available Functions |
@@ -120,6 +120,7 @@ The BalatroBot API provides core functions that correspond to the main game acti
120
120
|`rearrange_consumables`| Reorders the consumables according to the supplied index list |
121
121
|`cash_out`| Proceeds from round completion to the shop phase |
122
122
|`shop`| Performs shop actions: proceed to next round (`next_round`), purchase a card (`buy_card`), or reroll shop (`reroll`) |
123
+
|`sell_joker`| Sells a joker from the player's collection for money |
123
124
124
125
### Parameters
125
126
@@ -133,6 +134,7 @@ The following table details the parameters required for each function. Note that
133
134
|`rearrange_hand`|`cards` (array): Card indices (0-indexed, exactly `hand_size` elements) |
134
135
|`rearrange_consumables`|`consumables` (array): Consumable indices (0-indexed, exactly number of consumables in consumable area) |
135
136
|`shop`|`action` (string): Shop action ("next_round", "buy_card", or "reroll")<br>`index` (number, required when `action` = "buy_card"): 0-based card index to purchase |
137
+
|`sell_joker`|`index` (number): 0-based index of the joker to sell from the player's joker collection |
0 commit comments