Browse Source

feat: Improved stages

develop
Dale 1 month ago
parent
commit
65a611b38e
Signed by: Deiru GPG Key ID: AA250C0277B927E1
2 changed files with 3 additions and 1 deletions
  1. +2
    -1
      src/game.tsx
  2. +1
    -0
      src/lib/tasks.ts

+ 2
- 1
src/game.tsx View File

@@ -267,7 +267,7 @@ const actors: IActor<IGameState>[] = [
if (!haveTalkedToHelper) {
dispatch(setState({ haveTalkedToHelper: true }));
dispatch(setTask('outside', { stagesComplete: [0, 1, 2] })(dispatch));
dispatch(setTask('trapdoor', { stages: [0, 1], stagesComplete: [0] })(dispatch));
dispatch(setTask('trapdoor', { stages: [0, 1, 2], stagesComplete: [0] })(dispatch));
}
},
{ actorId: 'char_helper', text: 'Back again, huh?' },
@@ -296,6 +296,7 @@ const locations: ILocation<IGameState>[] = [
if (!beenInside) {
dispatch(setState({ beenInside: true }));
dispatch(setTask('outside', { stages: [0, 1, 2], stagesComplete: [0, 1] })(dispatch));
dispatch(setTask('trapdoor', { stages: [0, 2], stagesComplete: [0] })(dispatch));
}
},
{ text: 'You are standing inside a small wooden house. The setup feels familiar... ' },


+ 1
- 0
src/lib/tasks.ts View File

@@ -7,6 +7,7 @@ const tasks: TaskInfo = {
stages: [
"Find the trap door",
"Ask Helper about trap door",
"Look inside the house for the trap door",
]
},
choice: {


Loading…
Cancel
Save