Sfoglia il codice sorgente

You can directly look for trouble in the wilderness now

tags/v0.2.8
Fen Dweller 7 anni fa
parent
commit
502dddb758
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  1. +16
    -0
      objects.js

+ 16
- 0
objects.js Vedi File

@@ -168,4 +168,20 @@ function WildernessExplore(natureTrail) {
}
});

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

if (outcome < 0.33) {
startCombat(new Trance());
} else if (outcome < 0.66) {
startCombat(new Taluthus());
} else {
startCombat(new Selicia());
}
}
});

}

Loading…
Annulla
Salva