summaryrefslogtreecommitdiff
path: root/Towers/Components/PoisonComponent.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Towers/Components/PoisonComponent.gd')
-rw-r--r--Towers/Components/PoisonComponent.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/Towers/Components/PoisonComponent.gd b/Towers/Components/PoisonComponent.gd
new file mode 100644
index 0000000..77ee4fb
--- /dev/null
+++ b/Towers/Components/PoisonComponent.gd
@@ -0,0 +1,7 @@
+extends TowerComponent
+
+
+func on_shoot(target: Unit):
+ var effect = preload("res://Effects/PoisonEffect.tscn").instantiate()
+ effect.level = level
+ target.add_effect(effect)