1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-21 23:54:23 +00:00

Tweak some stuff

This commit is contained in:
Steffo 2024-05-02 04:38:49 +02:00
parent 7e7eba4869
commit 774db60f4b
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
3 changed files with 9 additions and 8 deletions

View file

@ -70,7 +70,7 @@ func _on_sacrifice_changed(_entity: Node2D) -> void:
break break
func _on_recipe_matched(m: SummoningRecipe.Match, recipe: SummoningRecipe) -> void: func _on_recipe_matched(m: SummoningRecipe.Match, recipe: SummoningRecipe) -> void:
recipe_matched.emit(m, recipe)
for stone in stones: for stone in stones:
for sacrificable in stone.entity.find_children("*", "Sacrificable", true, false): for sacrificable in stone.entity.find_children("*", "Sacrificable", true, false):
sacrificable.sacrifice() sacrificable.sacrifice()
recipe_matched.emit(m, recipe)

View file

@ -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="SacrificeSound" method="play" unbinds=2]
[connection signal="recipe_matched" from="." to="SacrificeParticles" method="emit" 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/FiveTopHats" to="Spawners/Watcher" method="spawn" flags=3 unbinds=1]
[connection signal="matched" from="Recipes/FiveMonocles" to="Spawners/Watcher" method="spawn" 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" 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" 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" 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" 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" unbinds=1] [connection signal="matched" from="Recipes/FiveWatchers" to="Spawners/Cthulhu" method="spawn" flags=3 unbinds=1]

View file

@ -12,6 +12,7 @@ gradient = SubResource("Gradient_7fg1u")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_0ctbi"] [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_0ctbi"]
lifetime_randomness = 0.2 lifetime_randomness = 0.2
particle_flag_disable_z = true particle_flag_disable_z = true
emission_shape_offset = Vector3(0, -36, 0)
emission_shape = 1 emission_shape = 1
emission_sphere_radius = 72.0 emission_sphere_radius = 72.0
direction = Vector3(0, -1, 0) direction = Vector3(0, -1, 0)