Skip to content

Commit

Permalink
add placeholder for task 102
Browse files Browse the repository at this point in the history
  • Loading branch information
customcommander committed Sep 28, 2024
1 parent 26fe0dd commit 5513a4c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ const machine = src.createMachine({
},
tasks: {
101: {selected: false },
102: {selected: false},
103: {selected: false }, // take grain
104: {selected: false },
105: {selected: false },
Expand Down
5 changes: 3 additions & 2 deletions src/messages_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ task-not-avail: >

101: Build Rooms and/or Build Stables
102: |
Storehouse
Take {qty} Food
Starting Player
and/or
1 Minor Improvement
103: Take 1 Grain
104: Plow 1 Field
105: 1 Occupation
Expand Down
33 changes: 33 additions & 0 deletions src/task-102.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
Starting Player
and/or
1 Minor Improvement
*/

import {
base
} from './task-lib.js';

const machine = base.createMachine({
initial: 'idle',
states: {
idle: {
on: {
'task.selected': {
actions: {
type: 'abort',
params: {
task_id: 102,
err: 'TODO'
}
}
}
}
}
}
});

export default machine;

0 comments on commit 5513a4c

Please sign in to comment.