fixed checksum and added seed-based chest spawning order
This commit is contained in:
@@ -44,13 +44,20 @@ func generate_playlist() -> void:
|
||||
chests.append(chest_details)
|
||||
chest_serial_no += 1
|
||||
|
||||
var match_details = {"round" : round,"chests" : chests}
|
||||
var numbers = []
|
||||
for i in range(chests_per_match):
|
||||
numbers.append(i+1)
|
||||
|
||||
numbers.shuffle()
|
||||
|
||||
var match_details = {"round" : round,"chests" : chests,"chest_order" : numbers}
|
||||
|
||||
matches.append(match_details)
|
||||
|
||||
playlist.append(matches)
|
||||
print(playlist[0][0]["round"][0])
|
||||
print(playlist[0][0]["chests"][3])
|
||||
print(playlist[0][0]["chest_order"])
|
||||
GameGlobals.playlist = playlist
|
||||
|
||||
func only_valid_chars(input_string: String) -> String:
|
||||
|
||||
Reference in New Issue
Block a user