From 85278220ade36748bc01c1959242c4c87b94f466 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 21 Apr 2018 21:24:50 -0400 Subject: [PATCH] Added options to fight a specific enemy in the mountains --- mountain.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/mountain.js b/mountain.js index 7d357c6..6d7c041 100644 --- a/mountain.js +++ b/mountain.js @@ -1,15 +1,26 @@ function MountainExplore() { GameObject.call(this, "Explore"); + this.actions.push({ + "name": "Wyvern male", + "action": function() { + startCombat(new MountainWyrm()); + } + }); + + this.actions.push({ + "name": "Wyvern female", + "action": function() { + startCombat(new MountainWyvern()); + } + }); + this.actions.push({ "name": "Explore", "action": function() { let outcome = Math.random(); advanceTime(60*15); - startCombat(new MountainWyvern()); - return; - if (outcome < 0.25) { startCombat(new MountainWyrm()); } else if (outcome < 0.5) {