Loot drops provider

This commit is contained in:
Marco 2025-03-21 16:03:44 +01:00
commit cf4b11d157
9 changed files with 117 additions and 19 deletions

View file

@ -9,6 +9,9 @@ public partial class Dead : EnemyStateBase
[Export]
public EnemyStorageModule StorageModule { get; private set; }
[Export]
public EnemyDropsProvider DropsProvider { get; private set; }
// public override void Init(IStateMachine<EnemyState, CharacterBody2D> machine)
// {
@ -27,7 +30,8 @@ public partial class Dead : EnemyStateBase
activatable.Activate(StorageModule.Root.ActivationType);
}
StorageModule.Root.QueueFree();
DropsProvider.DropLoot();
StorageModule.Root.QueueFree();
}
}