| @@ -1,15 +1,26 @@ | |||||
| function MountainExplore() { | function MountainExplore() { | ||||
| GameObject.call(this, "Explore"); | 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({ | this.actions.push({ | ||||
| "name": "Explore", | "name": "Explore", | ||||
| "action": function() { | "action": function() { | ||||
| let outcome = Math.random(); | let outcome = Math.random(); | ||||
| advanceTime(60*15); | advanceTime(60*15); | ||||
| startCombat(new MountainWyvern()); | |||||
| return; | |||||
| if (outcome < 0.25) { | if (outcome < 0.25) { | ||||
| startCombat(new MountainWyrm()); | startCombat(new MountainWyrm()); | ||||
| } else if (outcome < 0.5) { | } else if (outcome < 0.5) { | ||||