소스 검색

Added options to fight a specific enemy in the mountains

tags/v0.2.8
Fen Dweller 8 년 전
부모
커밋
85278220ad
1개의 변경된 파일14개의 추가작업 그리고 3개의 파일을 삭제
  1. +14
    -3
      mountain.js

+ 14
- 3
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) {


불러오는 중...
취소
저장