Skip to content

Commit

Permalink
placeholder for task 119
Browse files Browse the repository at this point in the history
  • Loading branch information
customcommander committed Oct 12, 2024
1 parent 5b0f462 commit 36a79f2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,13 @@ const machine = src.createMachine({
// Take x Vegetable
118: {selected: false,
turn: ro[2][0],
hidden: ro[2][0] > turn}
hidden: ro[2][0] > turn},

// Take {qty} Wild Boar
119: {selected: false,
quantity: 0,
turn: ro[2][1],
hidden: ro[2][1] > turn}


},
Expand All @@ -246,11 +252,11 @@ const machine = src.createMachine({
/*
The `on_*` properties are list of tasks ids
to be contact when the game reaches the
to be contacted when the game reaches the
corresponding state.
*/
on_replenish: ['107','108','109','110','114', '116'],
on_replenish: ['107','108','109','110','114', '116', '119'],
on_fields: ['001']
};
},
Expand Down
19 changes: 19 additions & 0 deletions src/task-119.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
Take {qty} Wild Boar
*/

import task from './lib-task.js';

export default task({
id: '119',

replenish: (_, game) => {
game.tasks['119'].quantity += 1;
return game;
},

todo: true
});

0 comments on commit 36a79f2

Please sign in to comment.