add status messages for new items

This commit is contained in:
Branden J Brown 2024-04-07 21:55:49 -05:00
parent d0b3cbd47a
commit 29265a18b7
2 changed files with 10 additions and 0 deletions

View File

@ -48,6 +48,11 @@ const actionMessages: Record<Game["action"], (game: Game) => string> = {
Beer: (game) => `THE ${game.dealer ? "DEALER" : "CHALLENGER"} TAKES A SIP AND A ${game.previous ? "LIVE SHELL" : "BLANK"} CLATTERS ON THE TABLE`,
Cuff: (game) => `THE ${game.dealer ? "DEALER" : "CHALLENGER"} HANDS CUFFS ACROSS THE TABLE`,
Knife: (game) => `THE ${game.dealer ? "DEALER" : "CHALLENGER"} CUTS THE BARREL SHORT`,
Adrenaline: (game) => `THE ${game.dealer ? "DEALER" : "CHALLENGER"} INJECTS ADRENALINE`,
Inverter: (game) => `THE ${game.dealer ? "DEALER" : "CHALLENGER"} CRANKS A POLARITY INVERTER`,
Phone: (game) => `THE ${game.dealer ? "DEALER" : "CHALLENGER"} LISTENS TO THE WHISPERS`,
PillsHeal: (game) => `THE ${game.dealer ? "DEALER" : "CHALLENGER"} INHALES A PILL... AND SMILES`,
PillsHurt: (game) => `THE ${game.dealer ? "DEALER" : "CHALLENGER"} INHALES A PILL... AND COLLAPSES`,
DealerConcedes: () => `THE DEALER SUDDENLY TURNS TO DUST`,
ChallengerConcedes: () => `THE CHALLENGER SUDDENLY TURNS TO DUST`,
}

View File

@ -13,6 +13,7 @@ export interface Game {
action: "Start"
| "Shoot" | "GameEnd" | "BeerGameEnd" | "ChallengerWins" | "DealerWins"
| "Lens" | "Cig" | "Beer" | "Cuff" | "Knife"
| "Adrenaline" | "Phone" | "Inverter" | "PillsHeal" | "PillsHurt"
| "DealerConcedes" | "ChallengerConcedes"
/**
* Match winner.
@ -30,6 +31,10 @@ export interface Game {
* Damage that a live round will deal this turn.
*/
damage: number;
/**
* Current player's adrenaline state.
*/
adrenaline: boolean;
/**
* Deadline for the current player's next action in milliseconds since the
* Unix epoch.