From 07b6dd07c4f46b6bef00d6536d7709bfcebff86e Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 7 Aug 2019 15:10:04 -0400 Subject: [PATCH] Start work on mass vore story --- satiate.html | 1 + stories/mass-vore.js | 68 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 stories/mass-vore.js diff --git a/satiate.html b/satiate.html index a571d43..095e334 100644 --- a/satiate.html +++ b/satiate.html @@ -9,6 +9,7 @@ + diff --git a/stories/mass-vore.js b/stories/mass-vore.js new file mode 100644 index 0000000..5183c6e --- /dev/null +++ b/stories/mass-vore.js @@ -0,0 +1,68 @@ +(() => { + function devour(state, count) { + state.player.stats.stomach.value += 100; + } + stories.push({ + id: "mass-vore", + name: "Mass Vore", + tags: [ + "Player Predator", + "Macro/Micro", + "Digestion" + ], + sounds: [ + + ], + preload: [ + + ], + intro: { + start: "city", + setup: state => { + state.player.stats.stomach = { + name: "Stomach", + type: "meter", + value: 0, + min: 0, + max: 10000, + color: "rgb(200,20,100)" + }; + }, + intro: state => { + print(["Munch time"]); + } + }, + world: { + "city": { + id: "", + name: "", + desc: "", + move: (room, state) => { + + }, + enter: (room, state) => { + + }, + exit: (room, state) => { + + }, + hooks: [ + + ], + actions: [ + { + name: "Eat", + desc: "Munch!", + execute: (room, state) => { + print(["Munch!"]); + devour(state, 100); + } + } + ], + exits: { + + } + } + } + }); +})(); \ No newline at end of file