1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-21 15:44:23 +00:00

Add Spawner.log_spawned

This commit is contained in:
Steffo 2024-05-03 01:41:24 +02:00
parent b0f56f0514
commit 233905daae
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

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