fixed checksum and added seed-based chest spawning order

This commit is contained in:
Derek
2025-03-28 08:35:21 -05:00
parent 97bb2c9852
commit 1422992c13
8 changed files with 31 additions and 42 deletions

View File

@@ -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: