feat: update vfx

This commit is contained in:
2026-06-18 14:04:06 +08:00
parent 5354d8b30f
commit 78f071b728
18 changed files with 704 additions and 62 deletions
+6
View File
@@ -491,6 +491,12 @@ func submit_to_leaderboard() -> void:
func get_display_name(fallback: String = "Guest") -> String:
if not is_profile_loaded:
# Profile storage (inventory/stats/fragments) may still be loading, but
# AuthManager.current_user is populated before auth_completed fires, so the
# real name is already available — prefer it over the guest fallback to
# avoid a logged-in host being registered as "Guest" when acting quickly.
if AuthManager.current_user.has("display_name"):
return AuthManager.current_user["display_name"]
return fallback
return profile.get("display_name", fallback)