Przeglądaj źródła

Can encounter Pooj at the bar now

tags/v0.2.8
Fen Dweller 7 lat temu
rodzic
commit
91d5502bd2
3 zmienionych plików z 18 dodań i 5 usunięć
  1. +10
    -0
      customs.js
  2. +6
    -3
      feast.js
  3. +2
    -2
      world.js

+ 10
- 0
customs.js Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz