瀏覽代碼

Can encounter Pooj at the bar now

tags/v0.2.8
Fen Dweller 7 年之前
父節點
當前提交
91d5502bd2
共有 3 個文件被更改,包括 18 次插入5 次删除
  1. +10
    -0
      customs.js
  2. +6
    -3
      feast.js
  3. +2
    -2
      world.js

+ 10
- 0
customs.js 查看文件

@@ -1681,6 +1681,16 @@ function lalimStruggle(predator) {

/* POOJAWA */

function PoojawaEncounter() {
GameObject.call(this, "Poojawa");
this.actions.push({
name: "Poojawa",
action: function() {
startCombat(new Poojawa());
}
});
}

function Poojawa() {
Creature.call(this, "Poojawa", 20, 40, 30);



+ 6
- 3
feast.js 查看文件

@@ -497,7 +497,7 @@ function respawn(respawnRoom) {
function startCombat(opponent) {
currentFoe = opponent;
changeMode("combat");
update(opponent.startCombat(player));
update(opponent.startCombat(player).concat([newline]));
}

function attackClicked(index) {
@@ -529,8 +529,11 @@ function attackClicked(index) {
}
}

if (currentFoe.status != undefined)
update(currentFoe.status());
if (currentFoe.status != undefined) {
let status = currentFoe.status();
if (status.length > 0)
update(status.concat([newline]));
}
}
}



+ 2
- 2
world.js 查看文件

@@ -142,9 +142,9 @@ let locationsSrc = [
"dir": SOUTH,
"desc": "You step out of the bar"
}
],
],
"objs": [
PoojawaEncounter
]
},
{


Loading…
取消
儲存