@block52/poker-vm-sdk 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +26 -1
- package/dist/index.esm.js +16 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/types/game.d.ts +25 -0
- package/dist/types/game.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56025,6 +56025,21 @@ exports.PlayerActionType = void 0;
|
|
|
56025
56025
|
PlayerActionType["BET"] = "bet";
|
|
56026
56026
|
PlayerActionType["CALL"] = "call";
|
|
56027
56027
|
PlayerActionType["RAISE"] = "raise";
|
|
56028
|
+
/**
|
|
56029
|
+
* @deprecated Not a dispatchable action. "All-in" is a UX label — going
|
|
56030
|
+
* all-in is a BET/CALL/RAISE whose amount equals the player's whole stack
|
|
56031
|
+
* (a short shove is an all-in-only RAISE, poker-vm#2353). The engine neither
|
|
56032
|
+
* advertises ALL_IN in getLegalActions nor accepts it via performAction (the
|
|
56033
|
+
* handler was removed, poker-vm#2353) — dispatching it throws.
|
|
56034
|
+
*
|
|
56035
|
+
* This member survives ONLY as the internal *recorded* action type:
|
|
56036
|
+
* baseAction.execute rewrites a full-stack commit to ALL_IN, and round-end
|
|
56037
|
+
* reopening + aggression detection (#2134) read it. Do not dispatch it and do
|
|
56038
|
+
* not add new consumers.
|
|
56039
|
+
*
|
|
56040
|
+
* NOTE: distinct from the still-required `PlayerStatus.ALL_IN` (a player's
|
|
56041
|
+
* state once their chips reach 0), which is NOT deprecated.
|
|
56042
|
+
*/
|
|
56028
56043
|
PlayerActionType["ALL_IN"] = "all-in";
|
|
56029
56044
|
PlayerActionType["MUCK"] = "muck";
|
|
56030
56045
|
PlayerActionType["SHOW"] = "show";
|
|
@@ -60920,7 +60935,7 @@ class SigningCosmosClient extends CosmosClient {
|
|
|
60920
60935
|
// SNG/Tournament games are DEFINED by startingStack + blindLevelDuration.
|
|
60921
60936
|
// Refuse to create one with missing/zero values rather than silently
|
|
60922
60937
|
// defaulting (Long.UZERO / 0) — a zero startingStack makes the prize pool
|
|
60923
|
-
// zero (
|
|
60938
|
+
// zero (SngPayoutManager.totalPrizePool = startingStack * runners) and pays
|
|
60924
60939
|
// the winner $0; a zero blindLevelDuration breaks blind escalation.
|
|
60925
60940
|
// No defaults — fail loud at creation (Commandment #7). (#2282)
|
|
60926
60941
|
const isSng = gameFormat === exports.GameFormat.SIT_AND_GO || gameFormat === exports.GameFormat.TOURNAMENT;
|