| @@ -20,6 +20,7 @@ | |||||
| "intro": { | "intro": { | ||||
| "start": "pepper-grinder", | "start": "pepper-grinder", | ||||
| "setup": state => { | "setup": state => { | ||||
| state.player.stats.health = { name: "Health", type: "meter", value: 100, min: 0, max: 100, color: "rgb(255,55,55)" }; | |||||
| state.player.stats.suspicion = { name: "Suspicion", type: "meter", value: 0, min: 0, max: 100, color: "rgb(100,100,100)" }; | state.player.stats.suspicion = { name: "Suspicion", type: "meter", value: 0, min: 0, max: 100, color: "rgb(100,100,100)" }; | ||||
| state.info.time.value = 60 * 60 * 7 + 60 * 17; | state.info.time.value = 60 * 60 * 7 + 60 * 17; | ||||
| @@ -293,7 +294,7 @@ | |||||
| }, | }, | ||||
| "enter": (room, state) => { | "enter": (room, state) => { | ||||
| startTimer({ | startTimer({ | ||||
| id: "gut", | |||||
| id: "throat-swallow", | |||||
| func: state => { | func: state => { | ||||
| print(["You slush down into Geta's stomach"]); | print(["You slush down into Geta's stomach"]); | ||||
| goToRoom("stomach", state); | goToRoom("stomach", state); | ||||
| @@ -322,6 +323,21 @@ | |||||
| ], | ], | ||||
| conditions: [ | conditions: [ | ||||
| ] | |||||
| }, | |||||
| { | |||||
| name: "Give up", | |||||
| desc: "Dive down into Geta's stomach", | |||||
| execute: (room, state) => { | |||||
| print(["You submit to your predator."]); | |||||
| goToRoom("stomach", state); | |||||
| stopTimer("throat-swallow", state); | |||||
| }, | |||||
| show: [ | |||||
| ], | |||||
| conditions: [ | |||||
| ] | ] | ||||
| }, | }, | ||||
| ], | ], | ||||
| @@ -348,12 +364,19 @@ | |||||
| startTimer({ | startTimer({ | ||||
| id: "digest", | id: "digest", | ||||
| func: state => { | func: state => { | ||||
| print(["You're digested before too long."]); | |||||
| goToRoom("digested", state); | |||||
| state.player.stats.health.value -= 0.3; | |||||
| if (state.player.stats.health.value <= 0) { | |||||
| print(["You're digested before too long."]); | |||||
| goToRoom("digested", state); | |||||
| return false; | |||||
| } | |||||
| return true; | return true; | ||||
| }, | }, | ||||
| delay: 10000, | |||||
| loop: false, | |||||
| delay: 100, | |||||
| loop: true, | |||||
| classes: [ | classes: [ | ||||
| ] | ] | ||||