FINAL JAM COMMIT
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using Godot;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -53,10 +54,10 @@ public partial class EnemyPool : Node
|
||||
|
||||
private void Died(Enemy e)
|
||||
{
|
||||
GameController.Instance.AddCurrency(25);
|
||||
GameController.Instance.AddCurrency((int)Math.Floor(e.Health.MaxHP));
|
||||
ReturnToPool(e);
|
||||
}
|
||||
|
||||
|
||||
private void ReturnToPool(Enemy e)
|
||||
{
|
||||
EnemySpawner.Instance.EnemiesSpawned--;
|
||||
|
||||
Reference in New Issue
Block a user