summary refs log tree commit diff stats
path: root/randomizer/randomizer.gd
diff options
context:
space:
mode:
Diffstat (limited to 'randomizer/randomizer.gd')
-rw-r--r--randomizer/randomizer.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/randomizer/randomizer.gd b/randomizer/randomizer.gd index 681567d..2d26208 100644 --- a/randomizer/randomizer.gd +++ b/randomizer/randomizer.gd
@@ -7,6 +7,8 @@ var SCRIPT_steady
7 7
8var generator 8var generator
9var steady 9var steady
10var sunwarps
11
10var thread = Thread.new() 12var thread = Thread.new()
11 13
12signal finished_randomizing 14signal finished_randomizing
@@ -29,6 +31,13 @@ func _thread_func(gen_seed):
29 steady = SCRIPT_steady.new() 31 steady = SCRIPT_steady.new()
30 steady.generate(rng) 32 steady.generate(rng)
31 33
34 var iota = range(1, 13)
35 sunwarps = []
36 while not iota.empty():
37 var i = rng.randi_range(0, iota.size() - 1)
38 sunwarps.append(iota[i])
39 iota.remove(i)
40
32 emit_signal("finished_randomizing") 41 emit_signal("finished_randomizing")
33 42
34 43