summaryrefslogtreecommitdiff
path: root/Towers/Components/BurnComponent.gd
blob: 96c24f7030464f89ffb59cbf78b6b957df99ac43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
extends TowerComponent


func _init() -> void:
	name = "Burn"
	set_sprite(preload("res://Towers/Components/Assets/burn-component.png"))


func on_shoot(target: Unit):
	var effect = preload("res://Effects/BurnEffect.tscn").instantiate()
	effect.level = level
	target.add_effect(effect)