From a3e1187d96758ab4bafaf9ed4be4463eba9a449f Mon Sep 17 00:00:00 2001 From: nokoe Date: Wed, 2 Oct 2024 23:40:18 +0200 Subject: check `join_state` before starting tutorial; fixes #210 --- client/game.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/game.gd b/client/game.gd index 7a0b1591..d87a091c 100644 --- a/client/game.gd +++ b/client/game.gd @@ -210,7 +210,11 @@ func handle_packet(p): player.item_message(item_name, timeout_initial, timeout_remaining) # Maybe start tutorial - if player.is_customer and not Global.get_setting("gameplay.tutorial_disabled"): + # 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 join_state == JoinState.JOINED): var completed_ingredients: Array = Global.get_profile("tutorial_ingredients_played") var completed := Global.array_has_all(completed_ingredients, ingredients) -- cgit v1.2.3-70-g09d2