From 3f07e3e2d2c7b29170cffb5d982b669d7ac67b3f Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Sat, 22 Mar 2025 14:19:48 +0100 Subject: improved game flow playing card for action points --- types.d.ts | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) (limited to 'types.d.ts') diff --git a/types.d.ts b/types.d.ts index 3459f5a..213b25d 100644 --- a/types.d.ts +++ b/types.d.ts @@ -80,6 +80,17 @@ export interface Game { fascist: 0 | 1 | 2; card_played: 0 | 1; hidden_bag?: 0 | 1; + /** + * Set to 1 if player has played card to their tableau and still + * needs to use action points + */ + can_use_ap: 0 | 1; + /** + * Set to 1 if player has played card to their tableau and still + * needs to use morale bonus. Note bonus still needs to be on, this + * just determines if player has used it or not + */ + can_use_mb: 0 | 1; } export interface View { @@ -239,32 +250,6 @@ export interface PlayCardArgs extends EngineNodeArgsBase { } export interface PlayerTurnArgs extends EngineNodeArgsBase { - /** - * When set to true, player can use current card - * for action points (using for ap sets it to false) - */ - use_ap?: boolean; - /** - * When set to true, player can use current card for - * morale bonus if that is active (using morale bonus sets it to dalse) - */ - use_morale_bonus?: boolean; - /** - * Set when starting to resolve event effect from card. Will be set to false - * after all effects have been resolved. Used to determine if momentum medallion - * can be used. - */ - resolving_event?: boolean; - /** - * Strength of the current card - */ - strength?: number; - /** - * Set to true if player got momentum medallion, - * but was not able to resolve directly as they were still - * resolving their current card - */ - use_momentum?: boolean; } // #endregion -- cgit v1.2.3