1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-21 23:34:18 +00:00

Fix gem value

This commit is contained in:
Steffo 2023-10-02 18:42:10 +02:00
parent 63de9308a5
commit bc43de64d9
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,9 @@
extends Node extends Node
@export var min_value: int
@export var max_value: int
func _ready(): func _ready():
get_parent().value=Randomizer.rng.randi_range(0,360) get_parent().value = Randomizer.rng.randi_range(min_value, max_value)

View file

@ -38,10 +38,12 @@ shader = ExtResource("5_v6ppl")
type = &"Gem" type = &"Gem"
[node name="Valuable" parent="." instance=ExtResource("5_7bd6c")] [node name="Valuable" parent="." instance=ExtResource("5_7bd6c")]
value = 10 value = 1000
[node name="RandomValue" type="Node" parent="Valuable"] [node name="RandomValue" type="Node" parent="Valuable"]
script = ExtResource("6_3lulr") script = ExtResource("6_3lulr")
min_value = 900
max_value = 1300
[node name="SoundWorking" type="AudioStreamPlayer" parent="."] [node name="SoundWorking" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_svrnw") stream = ExtResource("6_svrnw")