mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-20 03:13:47 +00:00
Loot drops provider
This commit is contained in:
parent
cc85cd4b54
commit
cf4b11d157
9 changed files with 117 additions and 19 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue