Damage source and effect fix
This commit is contained in:
parent
7aa0aa5bad
commit
c89d93cf24
15 changed files with 52 additions and 34 deletions
|
|
@ -1,3 +1,5 @@
|
|||
using Godot;
|
||||
|
||||
namespace Newlon.Components;
|
||||
|
||||
//
|
||||
|
|
@ -7,6 +9,7 @@ public interface IEntity
|
|||
{
|
||||
public int Hp { get; }
|
||||
public int MaxHp { get; }
|
||||
public void TakeDamage(int amount);
|
||||
public void Heal(int amount);
|
||||
public void TakeDamage(int amount,Node origin, Utility.DamageTypes damageType = Utility.DamageTypes.PHYSICAL);
|
||||
public void Heal(int amount, Node origin);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue