FINAL JAM COMMIT
This commit is contained in:
@@ -13,6 +13,7 @@ public partial class Projectile : Node2D
|
||||
|
||||
public event Action<Projectile> OnDespawn;
|
||||
public Vector2 Direction;
|
||||
public float Damage;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
@@ -34,7 +35,7 @@ public partial class Projectile : Node2D
|
||||
if (area is EnemyArea earea)
|
||||
{
|
||||
float isSe = _superEffective.Contains(earea.Enemy.Type) ? 2f : 1f;
|
||||
earea.Enemy.Health.Substract(_baseDamage * isSe);
|
||||
earea.Enemy.Health.Substract(Damage * isSe);
|
||||
}
|
||||
|
||||
CallDeferred(nameof(Despawn));
|
||||
|
||||
Reference in New Issue
Block a user