aboutsummaryrefslogtreecommitdiff
path: root/client/system/profile.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-09-29 20:21:22 +0200
committertpart <tpart120@proton.me>2025-09-29 22:50:49 +0200
commit0c8f9abfd586964c0f04a0a81989ae2d3dbfebdb (patch)
treee2912ee6c36eab5562f5977dd7c0e0022cbc1af2 /client/system/profile.gd
parent9a8e067adba9d4509e44f977be2f0cfe09d76d40 (diff)
downloadhurrycurry-0c8f9abfd586964c0f04a0a81989ae2d3dbfebdb.tar
hurrycurry-0c8f9abfd586964c0f04a0a81989ae2d3dbfebdb.tar.bz2
hurrycurry-0c8f9abfd586964c0f04a0a81989ae2d3dbfebdb.tar.zst
Remove remaining references to hint system
Diffstat (limited to 'client/system/profile.gd')
-rw-r--r--client/system/profile.gd29
1 files changed, 1 insertions, 28 deletions
diff --git a/client/system/profile.gd b/client/system/profile.gd
index 35706f2d..d0e04bb2 100644
--- a/client/system/profile.gd
+++ b/client/system/profile.gd
@@ -25,17 +25,7 @@ static var default_profile := {
},
"last_server_url": "",
"tutorial_ingredients_played": [],
- "registry_asked": false,
- "hints": {
- "has_moved": false,
- "has_boosted": false,
- "has_interacted": false,
- "has_rotated": false,
- "has_reset": false,
- "has_zoomed": false,
- "has_seen_performance": false,
- "has_seen_join_while_running": false
- }
+ "registry_asked": false
}
# profile is stored in a Dictionary[String, Any]
@@ -76,20 +66,3 @@ static func write(key: String, value):
return
if values[key] != value:
values[key] = value
-
-static func set_hint(key: String, value: bool):
- if !values["hints"].has(key):
- push_error("Tried to set hint \"%s\", which does not yet exist (missing key)" % key)
- if values["hints"][key] != value:
- if value:
- Settings.write("gameplay.hints_started", true)
- Settings.save()
- values["hints"][key] = value
- save() # TODO avoid this call when bulk-unsetting hints
-
-static func get_hint(key: String):
- if values["hints"].has(key):
- return values["hints"][key]
- else:
- push_error("Tried to access hint \"%s\", which does not exist (missing key)" % key)
- return null