aboutsummaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd14
1 files changed, 13 insertions, 1 deletions
diff --git a/client/global.gd b/client/global.gd
index 56566bbe..8fd50ac6 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -26,7 +26,11 @@ const VERSION := "2.3.1"
var default_profile := {
"username": "Giovanni",
- "character": 0,
+ "character_style": {
+ "color": 0,
+ "headwear": 0,
+ "hairstyle": 0
+ },
"last_server_url": "",
"tutorial_ingredients_played": [],
"registry_asked": false,
@@ -277,3 +281,11 @@ static func index_to_hand(i):
0: return "left"
1: return "right"
_: return "unknown"
+
+static func rem_euclid(i: int, mod: int) -> int:
+ var num := i % mod
+ if num < 0:
+ num += mod
+ num %= mod
+ return num
+