aboutsummaryrefslogtreecommitdiff
path: root/client/game.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-09-15 01:26:13 +0200
committermetamuffin <metamuffin@disroot.org>2025-09-15 01:38:34 +0200
commit676d4dcb6c439677b91b1b5cbc0bf08f98e2dd9d (patch)
tree5cd83591e230833735fbdacf41df5c1d69dd8c0e /client/game.gd
parent4e196b83a42b9b217e3b7107b55a14cb1a005b84 (diff)
downloadhurrycurry-676d4dcb6c439677b91b1b5cbc0bf08f98e2dd9d.tar
hurrycurry-676d4dcb6c439677b91b1b5cbc0bf08f98e2dd9d.tar.bz2
hurrycurry-676d4dcb6c439677b91b1b5cbc0bf08f98e2dd9d.tar.zst
Refactor settings; store as JSON; input settings now broken
Diffstat (limited to 'client/game.gd')
-rw-r--r--client/game.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/game.gd b/client/game.gd
index 8fa4a2cc..c0c0bb55 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -232,7 +232,7 @@ func handle_packet(p):
# after joining, the last item message that popped up is ignored. the next one will
# be used for the tutorial
if (player.is_customer
- and not Global.get_setting("gameplay.tutorial_disabled")
+ and not Settings.read("gameplay.tutorial_disabled")
and join_state == JoinState.JOINED):
var completed_ingredients: Array = Global.get_profile("tutorial_ingredients_played")
var completed := Global.array_has_all(completed_ingredients, ingredients)
@@ -310,7 +310,7 @@ func handle_packet(p):
while item_names[p.item] in tutorial_queue:
tutorial_queue.erase(item_names[p.item])
- if not tutorial_queue.is_empty() and not Global.get_setting("gameplay.tutorial_disabled"):
+ if not tutorial_queue.is_empty() and not Settings.read("gameplay.tutorial_disabled"):
tutorial_running = true
update_tutorial_running.emit(tutorial_running)
mp.send_chat(my_player_id, "/start-tutorial %s" % tutorial_queue.pop_front())