1
Fork 0
mirror of https://github.com/RYGhub/the-cold-night.git synced 2024-11-22 04:34:19 +00:00

🐛 Fix turbo-big-arrows

This commit is contained in:
Steffo 2022-04-05 01:06:29 +02:00
parent 09caa513c2
commit 06aa466269
Signed by: steffo
GPG key ID: 6965406171929D01
4 changed files with 11 additions and 6 deletions

View file

@ -63,7 +63,7 @@ loot_weights = [ 80.0, 10.0, 10.0 ]
[node name="Damaging" type="Node" parent="." index="5"] [node name="Damaging" type="Node" parent="." index="5"]
script = ExtResource( 11 ) script = ExtResource( 11 )
damage = -10.0 damage = -6.0
[connection signal="collided" from="AttractedToMovement" to="." method="_on_AttractedToMovement_collided"] [connection signal="collided" from="AttractedToMovement" to="." method="_on_AttractedToMovement_collided"]
[connection signal="moved_in_direction" from="AttractedToMovement" to="Shape/FourSidedSprite" method="_on_AttractedToMovement_moved_in_direction"] [connection signal="moved_in_direction" from="AttractedToMovement" to="Shape/FourSidedSprite" method="_on_AttractedToMovement_moved_in_direction"]

View file

@ -90,6 +90,7 @@ container_name = "Enemies"
wait_time = 2.0 wait_time = 2.0
[node name="DecreaseEvery" parent="Entities/Containers/Enemies/TowardsFireSpawner/SpawnEveryPeriod/Period" index="0" instance=ExtResource( 8 )] [node name="DecreaseEvery" parent="Entities/Containers/Enemies/TowardsFireSpawner/SpawnEveryPeriod/Period" index="0" instance=ExtResource( 8 )]
wait_time = 15.0
multiplier = 0.5 multiplier = 0.5
[node name="SetSpawnedGoalTo" parent="Entities/Containers/Enemies/TowardsFireSpawner/SpawnEveryPeriod" instance=ExtResource( 11 )] [node name="SetSpawnedGoalTo" parent="Entities/Containers/Enemies/TowardsFireSpawner/SpawnEveryPeriod" instance=ExtResource( 11 )]
@ -108,6 +109,7 @@ container_name = "Enemies"
wait_time = 2.0 wait_time = 2.0
[node name="DecreaseEvery" parent="Entities/Containers/Enemies/TowardsFireSpawner2/SpawnEveryPeriod/Period" index="0" instance=ExtResource( 8 )] [node name="DecreaseEvery" parent="Entities/Containers/Enemies/TowardsFireSpawner2/SpawnEveryPeriod/Period" index="0" instance=ExtResource( 8 )]
wait_time = 15.0
multiplier = 0.5 multiplier = 0.5
[node name="SetSpawnedGoalTo" parent="Entities/Containers/Enemies/TowardsFireSpawner2/SpawnEveryPeriod" instance=ExtResource( 11 )] [node name="SetSpawnedGoalTo" parent="Entities/Containers/Enemies/TowardsFireSpawner2/SpawnEveryPeriod" instance=ExtResource( 11 )]
@ -126,6 +128,7 @@ container_name = "Enemies"
wait_time = 2.0 wait_time = 2.0
[node name="DecreaseEvery" parent="Entities/Containers/Enemies/TowardsFireSpawner3/SpawnEveryPeriod/Period" index="0" instance=ExtResource( 8 )] [node name="DecreaseEvery" parent="Entities/Containers/Enemies/TowardsFireSpawner3/SpawnEveryPeriod/Period" index="0" instance=ExtResource( 8 )]
wait_time = 15.0
multiplier = 0.5 multiplier = 0.5
[node name="SetSpawnedGoalTo" parent="Entities/Containers/Enemies/TowardsFireSpawner3/SpawnEveryPeriod" instance=ExtResource( 11 )] [node name="SetSpawnedGoalTo" parent="Entities/Containers/Enemies/TowardsFireSpawner3/SpawnEveryPeriod" instance=ExtResource( 11 )]
@ -142,6 +145,7 @@ spawning = ExtResource( 5 )
container_name = "Enemies" container_name = "Enemies"
[node name="DecreaseEvery" parent="Entities/Containers/Enemies/TowardsPlayerSpawner/SpawnEveryPeriod/Period" index="0" instance=ExtResource( 8 )] [node name="DecreaseEvery" parent="Entities/Containers/Enemies/TowardsPlayerSpawner/SpawnEveryPeriod/Period" index="0" instance=ExtResource( 8 )]
wait_time = 15.0
multiplier = 0.5 multiplier = 0.5
[node name="SetSpawnedGoalTo" parent="Entities/Containers/Enemies/TowardsPlayerSpawner/SpawnEveryPeriod" instance=ExtResource( 11 )] [node name="SetSpawnedGoalTo" parent="Entities/Containers/Enemies/TowardsPlayerSpawner/SpawnEveryPeriod" instance=ExtResource( 11 )]

View file

@ -1,5 +1,7 @@
extends Node extends Node
export(PackedScene) var old_spawning
export(PackedScene) var new_spawning export(PackedScene) var new_spawning
@ -7,14 +9,11 @@ onready var target = get_tree().root.find_node("PhaseOnePlayer", true, false).ge
onready var pickup: Area2D = get_parent() onready var pickup: Area2D = get_parent()
var previous_spawn
func _on_picked_up(): func _on_picked_up():
previous_spawn = target.spawning
target.spawning = new_spawning target.spawning = new_spawning
target.connect("shot", self, "_on_shot", [], CONNECT_ONESHOT) target.connect("shot", self, "_on_shot", [], CONNECT_ONESHOT)
func _on_shot(_origin, _whatever): func _on_shot(_origin, _whatever):
target.spawning = previous_spawn target.spawning = old_spawning

View file

@ -1,8 +1,10 @@
[gd_scene load_steps=3 format=2] [gd_scene load_steps=4 format=2]
[ext_resource path="res://src/pickups/effects/BigArrow.gd" type="Script" id=1] [ext_resource path="res://src/pickups/effects/BigArrow.gd" type="Script" id=1]
[ext_resource path="res://src/entities/bullets/PiercingArrow.tscn" type="PackedScene" id=2] [ext_resource path="res://src/entities/bullets/PiercingArrow.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/entities/bullets/Arrow.tscn" type="PackedScene" id=3]
[node name="BigArrow" type="Node"] [node name="BigArrow" type="Node"]
script = ExtResource( 1 ) script = ExtResource( 1 )
old_spawning = ExtResource( 3 )
new_spawning = ExtResource( 2 ) new_spawning = ExtResource( 2 )