From 233905daae72f71b235289dca8b71b210bfd8f7a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 3 May 2024 01:41:24 +0200 Subject: [PATCH] Add `Spawner.log_spawned` --- behaviours/spawner.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/behaviours/spawner.gd b/behaviours/spawner.gd index f5af2ea..5840b3f 100644 --- a/behaviours/spawner.gd +++ b/behaviours/spawner.gd @@ -47,3 +47,6 @@ func spawn(): func roll_spawn(odds: int): if Random.rng.randi_range(0, odds - 1) == 0: spawn() + +func log_spawned(entity: Node2D) -> void: + Log.p(self, "Spawned: %s" % entity)