added separate stack for trump card to be permanently visible

This commit is contained in:
2025-09-27 15:42:34 +01:00
parent af959744e1
commit 57e498506b
2 changed files with 11 additions and 3 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ var hand_associations: Dictionary[String, PlayerHand]
@export var web_client: WebClient
@export var trump_stack: CardStack
@export var card_stack: CardStack
# In gameplay order
@@ -116,7 +117,8 @@ func _on_web_client_tcp_received_play_winner_request() -> void:
func _on_web_client_tcp_trump_received(trump_id: int) -> void:
_trump_id = trump_id
card_stack.purge_cards()
card_stack.add_card_by_id(_trump_id)
trump_stack.purge_cards()
trump_stack.add_card_by_id(_trump_id)
func _on_web_client_tcp_new_round_started() -> void:
# prepare a fresh BetResults bunch for the new round! the clients are hungry.