diff options
author | tpart <tpart120@proton.me> | 2025-06-29 20:39:48 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2025-06-29 20:39:48 +0200 |
commit | 34f6723c5491b17ab922155e1ee2e054d3c88f4b (patch) | |
tree | 01afaa859337e3ae6549fea9d6b3015d12273527 /client/game.gd | |
parent | e4a1afec7a999858efdf3eb256101b5400bacbb3 (diff) | |
download | hurrycurry-34f6723c5491b17ab922155e1ee2e054d3c88f4b.tar hurrycurry-34f6723c5491b17ab922155e1ee2e054d3c88f4b.tar.bz2 hurrycurry-34f6723c5491b17ab922155e1ee2e054d3c88f4b.tar.zst |
Refactor character script (Closes #312)
Diffstat (limited to 'client/game.gd')
-rw-r--r-- | client/game.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/game.gd b/client/game.gd index 37404b7a..b4b6f9df 100644 --- a/client/game.gd +++ b/client/game.gd @@ -248,7 +248,7 @@ func handle_packet(p): if pinned: push_error("Pinned text messages are currently not supported") var player: Player = players[p.player] - data.color = Character.COLORS[G.rem_euclid(player.character_style.color, Character.NUM_COLORS)] + data.color = Character.COLORS[G.rem_euclid(player.character_style.color, Character.COLORS.size())] data.username = players[p.player].username data.text = p.message.text if "text" in p.message else get_message_str(p.message) |