the-crypt/magic/Projectiles/PhantomProjectile.gd

16 lines
223 B
GDScript3
Raw Normal View History

2020-07-20 01:18:45 -05:00
extends Projectile
var ignore = []
2020-07-20 16:36:28 -05:00
func _ready():
2020-07-21 15:50:32 -05:00
$FireSound.play(0.0)
2020-07-20 16:36:28 -05:00
energy_cost = 3
damage = 1
2020-07-20 01:18:45 -05:00
func _on_body_entered(body):
if body.get("health") != null:
2020-07-21 15:02:07 -05:00
body.play_hit()
2020-07-20 16:36:28 -05:00
body.health -= damage * damage_mod
2020-07-20 01:18:45 -05:00