From cddc0424b60064925f506b8fd3202f8ca59c8e2d Mon Sep 17 00:00:00 2001 From: betalars Date: Wed, 19 Jul 2023 22:38:16 +0200 Subject: [PATCH] fix: cards are reset when no longer void --- src/logic-scenes/board/card.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logic-scenes/board/card.gd b/src/logic-scenes/board/card.gd index f3c8a06..8910b54 100644 --- a/src/logic-scenes/board/card.gd +++ b/src/logic-scenes/board/card.gd @@ -19,8 +19,8 @@ var scale_tween if !Engine.is_editor_hint(): wiggle_pos = float(text.hash() % 100) _handle_wiggle(0) - if get_children() != [] and !Engine.is_editor_hint() and text == "": - $BackgroundSprite.void_active = true + if get_children() != [] and !Engine.is_editor_hint(): + $BackgroundSprite.void_active = text == "" @export var wiggle_strength: float = 0.2 @export var wiggle_speed: float = 5 @export_range(1, 2) var scale_bump: float = 1.05