From 774db60f4b16b36a7d251f8117edaf7786fb707c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 2 May 2024 04:38:49 +0200 Subject: [PATCH] Tweak some stuff --- behaviours/summoning_circle.gd | 2 +- entities/summoning_circle_pentagram.tscn | 14 +++++++------- entities/summoning_circle_pentagram_particles.tscn | 1 + 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/behaviours/summoning_circle.gd b/behaviours/summoning_circle.gd index b54d1eb..c759bf9 100644 --- a/behaviours/summoning_circle.gd +++ b/behaviours/summoning_circle.gd @@ -70,7 +70,7 @@ func _on_sacrifice_changed(_entity: Node2D) -> void: break func _on_recipe_matched(m: SummoningRecipe.Match, recipe: SummoningRecipe) -> void: - recipe_matched.emit(m, recipe) for stone in stones: for sacrificable in stone.entity.find_children("*", "Sacrificable", true, false): sacrificable.sacrifice() + recipe_matched.emit(m, recipe) diff --git a/entities/summoning_circle_pentagram.tscn b/entities/summoning_circle_pentagram.tscn index 068144d..4492565 100644 --- a/entities/summoning_circle_pentagram.tscn +++ b/entities/summoning_circle_pentagram.tscn @@ -92,10 +92,10 @@ scene = ExtResource("9_wli14") [connection signal="recipe_matched" from="." to="SacrificeSound" method="play" unbinds=2] [connection signal="recipe_matched" from="." to="SacrificeParticles" method="emit" unbinds=2] -[connection signal="matched" from="Recipes/FiveTopHats" to="Spawners/Watcher" method="spawn" unbinds=1] -[connection signal="matched" from="Recipes/FiveMonocles" to="Spawners/Watcher" method="spawn" unbinds=1] -[connection signal="matched" from="Recipes/ASkull" to="Spawners/Chupacabra" method="spawn" unbinds=1] -[connection signal="matched" from="Recipes/FiveSheep" to="Spawners/Imp" method="spawn" unbinds=1] -[connection signal="matched" from="Recipes/FiveImps" to="Spawners/Chupacabra" method="spawn" unbinds=1] -[connection signal="matched" from="Recipes/FiveChupacabras" to="Spawners/Watcher" method="spawn" unbinds=1] -[connection signal="matched" from="Recipes/FiveWatchers" to="Spawners/Cthulhu" method="spawn" unbinds=1] +[connection signal="matched" from="Recipes/FiveTopHats" to="Spawners/Watcher" method="spawn" flags=3 unbinds=1] +[connection signal="matched" from="Recipes/FiveMonocles" to="Spawners/Watcher" method="spawn" flags=3 unbinds=1] +[connection signal="matched" from="Recipes/ASkull" to="Spawners/Chupacabra" method="spawn" flags=3 unbinds=1] +[connection signal="matched" from="Recipes/FiveSheep" to="Spawners/Imp" method="spawn" flags=3 unbinds=1] +[connection signal="matched" from="Recipes/FiveImps" to="Spawners/Chupacabra" method="spawn" flags=3 unbinds=1] +[connection signal="matched" from="Recipes/FiveChupacabras" to="Spawners/Watcher" method="spawn" flags=3 unbinds=1] +[connection signal="matched" from="Recipes/FiveWatchers" to="Spawners/Cthulhu" method="spawn" flags=3 unbinds=1] diff --git a/entities/summoning_circle_pentagram_particles.tscn b/entities/summoning_circle_pentagram_particles.tscn index b5483c2..3c2ad01 100644 --- a/entities/summoning_circle_pentagram_particles.tscn +++ b/entities/summoning_circle_pentagram_particles.tscn @@ -12,6 +12,7 @@ gradient = SubResource("Gradient_7fg1u") [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_0ctbi"] lifetime_randomness = 0.2 particle_flag_disable_z = true +emission_shape_offset = Vector3(0, -36, 0) emission_shape = 1 emission_sphere_radius = 72.0 direction = Vector3(0, -1, 0)