From 9a5eb8ddf73fecc0ef5907983e136a1018937621 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 27 Sep 2025 00:55:20 +0200 Subject: Add client cli tool to render tiles/items to PNG --- client/map/items/item.gd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'client/map') diff --git a/client/map/items/item.gd b/client/map/items/item.gd index 92681df0..bf61966f 100644 --- a/client/map/items/item.gd +++ b/client/map/items/item.gd @@ -32,7 +32,7 @@ var progress_position := 0. var progress_warn := false var destroy_timeout = null -var creation_timer = 0.0 +var creation_timer = null var item_owned = false var player_owned_timer = 0.0 @@ -52,8 +52,10 @@ func _init(owned_by_: Node3D): base.name = "Base" add_child(base) owned_by = owned_by_ - if not owned_by.get_parent() is Item and not owned_by is Item: - scale = Vector3.ONE * 0.001 # setting to zero breaks assertions somewhere in the engine + +func animate_spawn(): + creation_timer = 0.0 + scale = Vector3.ONE * 0.001 # setting to zero breaks assertions somewhere in the engine func _process(delta): if not is_instance_valid(owned_by): return -- cgit v1.2.3-70-g09d2