mirror of
https://github.com/Steffo99/swear-jar.git
synced 2024-11-22 07:44:17 +00:00
Fix gem value
This commit is contained in:
parent
63de9308a5
commit
bc43de64d9
2 changed files with 9 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue