add status messages for new items
This commit is contained in:
parent
d0b3cbd47a
commit
29265a18b7
@ -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`,
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user