diff --git a/collector/collector.gd b/collector/collector.gd index d48486f..78f6e9a 100644 --- a/collector/collector.gd +++ b/collector/collector.gd @@ -29,7 +29,8 @@ func _on_body_entered(body: Node2D): if collectible and collectible.type in collecting_types: collected_count += 1 collectible.collect() - $sound_absorb.play() + if sound_absorb: + sound_absorb.play() emit_signal("collected", body) if collected_count >= collecting_amount: emit_signal("goal") diff --git a/converters/gold_to_gem/gem_converter.tscn b/converters/gold_to_gem/gem_converter.tscn index 12fa6f1..c0059e5 100644 --- a/converters/gold_to_gem/gem_converter.tscn +++ b/converters/gold_to_gem/gem_converter.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=17 format=3 uid="uid://c4ew8x4gch275"] +[gd_scene load_steps=23 format=3 uid="uid://c4ew8x4gch275"] [ext_resource type="Script" path="res://converters/converter.gd" id="1_f5plk"] [ext_resource type="Texture2D" uid="uid://chc8wqc1pclbk" path="res://converters/gold_to_gem/gold_converter_back.png" id="2_icys1"] diff --git a/entity/gem/gem.tscn b/entity/gem/gem.tscn index bfa6cf6..ec92543 100644 --- a/entity/gem/gem.tscn +++ b/entity/gem/gem.tscn @@ -35,7 +35,7 @@ texture = ExtResource("3_6jejy") shader = ExtResource("5_v6ppl") [node name="Collectible" parent="." instance=ExtResource("4_idoeu")] -type = &"Silver" +type = &"Gem" [node name="Valuable" parent="." instance=ExtResource("5_7bd6c")] value = 10