From b79299239191e66dbd695ea29bf6dd021b24b7ff Mon Sep 17 00:00:00 2001 From: "Chen, Tai-Lin" Date: Wed, 3 Jul 2024 00:31:20 +0800 Subject: [PATCH] fix: update quest [explore] --- quests/explore/game.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/quests/explore/game.yml b/quests/explore/game.yml index 3a5c404..8e1423a 100644 --- a/quests/explore/game.yml +++ b/quests/explore/game.yml @@ -31,7 +31,7 @@ stages: - start condition: command: - - ls + - ^ls$ exceptions: - condition: not: @@ -62,7 +62,7 @@ stages: - ls condition: pwd: - - /home/commander/folder1 + - ^/home/commander/folder1$ exceptions: - condition: command: @@ -73,7 +73,7 @@ stages: `folder1` 的最後是數字 `1` 不是字母 `l`。 - condition: pwd: - - /home/commander + - ^/home/commander$ responses: - type: narrative content: @@ -81,7 +81,7 @@ stages: - condition: not: pwd: - - /home/commander + - ^/home/commander$ responses: - type: narrative content: | @@ -105,9 +105,9 @@ stages: - cd-folder1 condition: pwd: - - /home/commander/folder1 + - ^/home/commander/folder1$ command: - - ls + - ^ls$ responses: - content: | 你現在可以看到 `folder1` 資料夾中有兩的檔案,分別是 `file1.txt` 跟 `file2.txt`。 @@ -123,7 +123,7 @@ stages: - ls-folder1 condition: pwd: - - /home/commander + - ^/home/commander$ responses: - content: | 你成功的回到上一層資料夾了。 @@ -138,7 +138,7 @@ stages: - cd-.. condition: pwd: - - /home/commander/folder2 + - ^/home/commander/folder2$ responses: - content: | 你成功的進入 `folder2` 資料夾了。 @@ -152,7 +152,7 @@ stages: - cd-folder2 condition: pwd: - - /home/commander/folder2 + - ^/home/commander/folder2$ command: - ^ls$ responses: @@ -168,7 +168,7 @@ stages: - ls-folder2 condition: pwd: - - /home/commander + - ^/home/commander$ responses: - content: | 你成功的回到原本的資料夾了。