you can now have more than 6 custom characters

This commit is contained in:
JHDev2006
2025-09-13 20:37:42 +01:00
parent 0b40efc9f7
commit 38c97e9e17
5 changed files with 9 additions and 6 deletions

View File

@@ -74,11 +74,11 @@ func handle_input() -> void:
selected_index = wrap(selected_index + 1, 0, Player.CHARACTERS.size())
update_sprites()
if Input.is_action_just_pressed("ui_accept"):
Global.player_characters[player_id] = str(selected_index)
Global.player_characters[player_id] = (selected_index)
var characters := Global.player_characters
for i in characters:
if int(i) > 3:
characters = "0000"
characters = [0, 0, 0, 0]
Settings.file.game.characters = characters
Settings.save_settings()
selected.emit()