From 343cc370339c1a828c031e89ec95e543dba51a5b Mon Sep 17 00:00:00 2001 From: Jack Case Date: Wed, 20 Aug 2025 08:39:07 -0400 Subject: [PATCH] cast token type to enum value --- token.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/token.gd b/token.gd index a5a8c68..f0b2cbe 100644 --- a/token.gd +++ b/token.gd @@ -8,7 +8,7 @@ var color_polygon func _ready(): color_polygon = $Color - type = randi_range(0, 3) + type = randi_range(0, 3) as token_type match type: token_type.TYPE_1: color_polygon.color = Color.RED