1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-25 09:04:19 +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
@export var min_value: int
@export var max_value: int
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"
[node name="Valuable" parent="." instance=ExtResource("5_7bd6c")]
value = 10
value = 1000
[node name="RandomValue" type="Node" parent="Valuable"]
script = ExtResource("6_3lulr")
min_value = 900
max_value = 1300
[node name="SoundWorking" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_svrnw")