characters!!!
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 10s
Create tag and build when new code gets to main / Export (push) Successful in 1m30s

This commit is contained in:
2026-02-01 13:41:21 +01:00
parent 837b994ef0
commit 81b632d3aa
18 changed files with 375 additions and 14 deletions

View File

@@ -30,6 +30,7 @@ class_name GameManager
@export_category("Random levels")
@export var current_level: Levels = Levels.LVL1
@export var max_number_guests: int = 9
@export_tool_button("Create chara roster") var create_roster_action = create_new_roster
var current_chara_roster: Array[MaskedChara]
@@ -59,7 +60,7 @@ var roster_size: int = 2
func create_new_roster() -> void:
current_chara_roster = []
var roster_for_this_round = character_roster.duplicate()
var max_number_of_people = min(roster_size, character_roster.size())
var max_number_of_people = min(roster_size, character_roster.size(), max_number_guests)
for i in range(max_number_of_people):
# Pick unique characters for the roster
var random_index = randi_range(0, roster_for_this_round.size() - 1)