diff options
author | nokoe <nokoe@mailbox.org> | 2024-10-02 23:40:18 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-10-02 23:40:54 +0200 |
commit | a3e1187d96758ab4bafaf9ed4be4463eba9a449f (patch) | |
tree | 528b65e9c6b2ef274c8e8f14e9b08293a59c7fd7 /client/game.gd | |
parent | 01d64c62d2a9cd60e5052f21b0f11c5214c052e5 (diff) | |
download | hurrycurry-a3e1187d96758ab4bafaf9ed4be4463eba9a449f.tar hurrycurry-a3e1187d96758ab4bafaf9ed4be4463eba9a449f.tar.bz2 hurrycurry-a3e1187d96758ab4bafaf9ed4be4463eba9a449f.tar.zst |
check `join_state` before starting tutorial; fixes #210
Diffstat (limited to 'client/game.gd')
-rw-r--r-- | client/game.gd | 6 |
1 files changed, 5 insertions, 1 deletions
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) |