diff --git a/prefab/furnitures/SpellEditor.tscn b/prefab/furnitures/SpellEditor.tscn index 00dae2c..4c1d8d0 100644 --- a/prefab/furnitures/SpellEditor.tscn +++ b/prefab/furnitures/SpellEditor.tscn @@ -92,8 +92,6 @@ collision_layer = 256 collision_mask = 160 script = ExtResource("1_t1qdg") Path = "res://prefab/ui/SpellEditorUI.tscn" -_initialDurability = null -_maxDurability = null _furnitureName = "ui_spell_editor" [node name="CollisionShape2D" type="CollisionShape2D" parent="."] diff --git a/prefab/roomTemplates/tutorials/spellEditor.tscn b/prefab/roomTemplates/tutorials/spellEditor.tscn index 6516578..3908525 100644 --- a/prefab/roomTemplates/tutorials/spellEditor.tscn +++ b/prefab/roomTemplates/tutorials/spellEditor.tscn @@ -90,8 +90,6 @@ texture = ExtResource("6_dbg76") [node name="RigidBody2D" parent="." instance=ExtResource("5_0kep0")] position = Vector2(227, 283) -_initialDurability = 0 -_maxDurability = 0 [node name="WoodenBox" parent="." instance=ExtResource("7_jybe6")] position = Vector2(715, 244) diff --git a/scripts/weapon/ProjectileWeapon.cs b/scripts/weapon/ProjectileWeapon.cs index 5ab297e..1eb8c32 100644 --- a/scripts/weapon/ProjectileWeapon.cs +++ b/scripts/weapon/ProjectileWeapon.cs @@ -270,6 +270,7 @@ public partial class ProjectileWeapon : WeaponTemplate spell.ModifyProjectile(i, projectile, ref velocity); } NodeUtils.CallDeferredAddChild(GameSceneDepend.ProjectileContainer, projectile); + projectile.LookAt(velocity); projectile.Owner = owner; projectile.TargetNode = GameSceneDepend.TemporaryTargetNode; projectile.Velocity = velocity; diff --git a/sprites/tutorials/spellEditor.png b/sprites/tutorials/spellEditor.png index f089baa..6b7b1ab 100644 Binary files a/sprites/tutorials/spellEditor.png and b/sprites/tutorials/spellEditor.png differ diff --git a/sprites/tutorials/tripleShotSpell.png b/sprites/tutorials/tripleShotSpell.png index 2b21867..5bb979c 100644 Binary files a/sprites/tutorials/tripleShotSpell.png and b/sprites/tutorials/tripleShotSpell.png differ