2020-07-20 01:18:45 -05:00
|
|
|
extends Projectile
|
|
|
|
|
|
|
|
|
|
|
|
var ignore = []
|
|
|
|
|
2020-07-20 16:36:28 -05:00
|
|
|
func _ready():
|
|
|
|
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
|
|
|
|