fix: cards are reset when no longer void

This commit is contained in:
betalars 2023-07-19 22:38:16 +02:00
parent 0b60ce6eba
commit cddc0424b6
1 changed files with 2 additions and 2 deletions

View File

@ -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