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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ The BalatroBot API provides core functions that correspond to the main game acti
118
118
|`play_hand_or_discard`| Plays selected cards or discards them |
119
119
|`rearrange_hand`| Reorders the current hand according to the supplied index list |
120
120
|`cash_out`| Proceeds from round completion to the shop phase |
121
-
|`shop`| Performs shop actions. Currently supports proceeding to the next round |
121
+
|`shop`| Performs shop actions: proceed to next round (`next_round`) or purchase a card (`buy_card`)|
122
122
123
123
### Parameters
124
124
@@ -130,7 +130,7 @@ The following table details the parameters required for each function. Note that
130
130
|`skip_or_select_blind`|`action` (string): Either "select" or "skip" |
131
131
|`play_hand_or_discard`|`action` (string): Either "play_hand" or "discard"<br>`cards` (array): Card indices (0-indexed, 1-5 cards) |
132
132
|`rearrange_hand`|`cards` (array): Card indices (0-indexed, exactly `hand_size` elements) |
133
-
|`shop`|`action` (string): Shop action to perform ("next_round") |
133
+
|`shop`|`action` (string): Shop action ("next_round" or "buy_card")<br>`index` (number, required when `action` = "buy_card"): 0-based card index to purchase|
0 commit comments