From 95c8d6f2a59b9e22f3862aec8e8a2d12b57402a5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 7 Aug 2020 20:24:49 +0200 Subject: [PATCH] Projectile section. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 5ebcfbd..5158f9b 100644 --- a/README.md +++ b/README.md @@ -466,6 +466,15 @@ by modifying their damage values in aura callbacks. ### Projectiles +Spells support projectiles, they are created/set up inside `void handle_projectile(info: SpellCastInfo)`. + +The default implementation will instance `Spell`'s projectile scene (if set), and then it will try to call a +`void setup_projectile(info: SpellCastInfo)` on it if exists. + +You can override this behaviour by implementing your own `_void handle_projectile(info: SpellCastInfo)` on `Spell` + +Note that the module already adds `SpellFollowProjectile3D`, but this has not been finished yet. + ## Items Items are implemented using 2 classes, `ItemTemplate`, and `ItemInstance`.