Pārlūkot izejas kodu

Better explore names

tags/v0.2.8^0
Fen Dweller pirms 7 gadiem
vecāks
revīzija
e1a6047f0c
2 mainītis faili ar 3 papildinājumiem un 19 dzēšanām
  1. +2
    -18
      mountain.js
  2. +1
    -1
      world.js

+ 2
- 18
mountain.js Parādīt failu

@@ -2,34 +2,18 @@ function MountainExplore() {
GameObject.call(this, "Explore");

this.actions.push({
"name": "Wyvern male",
"name": "Wander around",
"action": function() {
startCombat(new MountainWyrm());
}
});

this.actions.push({
"name": "Wyvern female",
"name": "Enter the cave",
"action": function() {
startCombat(new MountainWyvern());
}
});

this.actions.push({
"name": "Explore",
"action": function() {
let outcome = Math.random();
advanceTime(60*15);

if (outcome < 0.25) {
startCombat(new MountainWyrm());
} else if (outcome < 0.5) {
startCombat(new MountainWyvern());
} else {
update(["You wander around for a bit, but haven't found your way out yet."]);
}
}
});
}

function MountainWyrm() {


+ 1
- 1
world.js Parādīt failu

@@ -228,7 +228,7 @@ let locationsSrc = [
{
"name": "Mountains",
"dir": EAST,
"desc": "You head up into the mountains."
"desc": "You head up into the mountains, passing by a...noticeably stained sign reading \"WATCH OUT FOR HORNY DRAGONS\". Weird. You see a cave off in the distance, as well as some jagged cliffs and plateaus to explore."
},
{
"name": "Woods",


Notiek ielāde…
Atcelt
Saglabāt