diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-19 15:24:50 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-19 15:24:50 +0100 |
commit | 72863ffa31e27f4c6be862d80472cfb897fccaea (patch) | |
tree | ce04be8d77b10c797c8ff854c8ff1a219eb1af46 /Towers/Components/PoisonComponent.gd | |
parent | 63d2a59042fb9d90a586ad85d8364de7c38aea8e (diff) |
Diffstat (limited to 'Towers/Components/PoisonComponent.gd')
-rw-r--r-- | Towers/Components/PoisonComponent.gd | 7 |
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) |