From 474ef692613f298ab05bbb65ad85625f178b63cc Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 28 Dec 2024 15:08:23 +0100 Subject: next commit --- item/item.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'item') diff --git a/item/item.gd b/item/item.gd index 4f99999..fa00841 100644 --- a/item/item.gd +++ b/item/item.gd @@ -2,5 +2,9 @@ class_name Item extends Node2D +func _ready() -> void: + $Sprite2D.modulate = Color(max(0.1, randf()), max(0.1, randf()), max(0.1, randf())) + + func apply(_player: Player): pass -- cgit v1.2.3