Improvements to save and loading
Improvements to Chinthe animation logic Fix broken Godot Tool system and just use a more manual approach to setting map nodes Remove ItemDatabase from individual room scenes
This commit is contained in:
@@ -45,6 +45,8 @@ public abstract partial class Enemy : CharacterBody3D, IEnemy, IProvide<IEnemyLo
|
||||
|
||||
[Export] public int ExpGiven { get; set; } = 10;
|
||||
|
||||
private bool _activated = false;
|
||||
|
||||
public Enemy()
|
||||
{
|
||||
HealthComponent = new HealthComponent(InitialHP);
|
||||
@@ -72,7 +74,9 @@ public abstract partial class Enemy : CharacterBody3D, IEnemy, IProvide<IEnemyLo
|
||||
EnemyBinding
|
||||
.Handle((in EnemyLogic.Output.Activate _) =>
|
||||
{
|
||||
Activate();
|
||||
if (!_activated)
|
||||
Activate();
|
||||
_activated = true;
|
||||
})
|
||||
.Handle((in EnemyLogic.Output.Idle _) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user