Преглед на файлове

Can encounter Pooj at the bar now

tags/v0.2.8
Fen Dweller преди 8 години
родител
ревизия
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 */ /* POOJAWA */


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

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




+ 6
- 3
feast.js Целия файл

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


function attackClicked(index) { 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, "dir": SOUTH,
"desc": "You step out of the bar" "desc": "You step out of the bar"
} }
],
],
"objs": [ "objs": [
PoojawaEncounter
] ]
}, },
{ {


Loading…
Отказ
Запис