Browse Source

Each combat round clears the screen

tags/v0.2.8
Fen Dweller 7 years ago
parent
commit
d205db44fe
3 changed files with 12 additions and 1 deletions
  1. +1
    -1
      customs.js
  2. +9
    -0
      feast.css
  3. +2
    -0
      feast.js

+ 1
- 1
customs.js View File

@@ -1973,7 +1973,7 @@ function poojawaPlayerCaughtOral(player) {
function poojawaPlayerCaughtTail(player) {
return {
name: "Rub her tails",
desc: "Why not just give them a fewpets?",
desc: "Why not just give them a few pets?",
attack: function(poojawa) {
poojawa.flags.tail += 1;
return ["You reach out at one of Poojawa's swaying tails, stroking along soft fur and sneaking your hand into the slackeend maw. So soft..."];


+ 9
- 0
feast.css View File

@@ -6,6 +6,15 @@ body {
font-family: Arial;
}

hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}

a {
color: #7777FF;
text-decoration: none;


+ 2
- 0
feast.js View File

@@ -421,6 +421,7 @@ function update(lines=[]) {
log.appendChild(div);
}


log.scrollTop = log.scrollHeight;
updateDisplay();
}
@@ -501,6 +502,7 @@ function startCombat(opponent) {
}

function attackClicked(index) {
clearScreen();
update(playerAttacks[index].attack(currentFoe).concat([newline]));

if (currentFoe.health <= 0) {


Loading…
Cancel
Save