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:
parent
b0f56f0514
commit
233905daae
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue