Fix shop action costs and pass semantics.
Only buying costs gold; selling and trading (Triple) are free. Pass is now a final action, legal only at or under the pet limit: it forfeits remaining gold and ends that player's shopping for the round, with the shop closing once everyone has passed. That makes the separate cleanup phase unreachable (you sell down in-shop before passing), so it is removed. The client asks for confirmation before passing, and the bot knows buys are the only coin sink, when passing is legal, and that it must sell down before it can pass.
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
export type Suit = 'red' | 'blue' | 'yellow'
|
||||
export type CardKind = 'pet' | 'food'
|
||||
export type Phase = 'lobby' | 'shop' | 'cleanup' | 'arrange' | 'battle' | 'gameover'
|
||||
export type Phase = 'lobby' | 'shop' | 'arrange' | 'battle' | 'gameover'
|
||||
|
||||
export interface Card {
|
||||
id: string
|
||||
|
||||
Reference in New Issue
Block a user