diff --git a/customs.js b/customs.js index e61d27c..5fede75 100644 --- a/customs.js +++ b/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); diff --git a/feast.js b/feast.js index 2a36f3e..a4dfb63 100644 --- a/feast.js +++ b/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])); + } } } diff --git a/world.js b/world.js index 020b4d7..cf364a6 100644 --- a/world.js +++ b/world.js @@ -142,9 +142,9 @@ let locationsSrc = [ "dir": SOUTH, "desc": "You step out of the bar" } - ], + ], "objs": [ - + PoojawaEncounter ] }, {