Bläddra i källkod

Fixed descriptions getting broken by evil globals

tags/v0.7.0
Fen Dweller 7 år sedan
förälder
incheckning
3c8a9dc539
1 ändrade filer med 8 tillägg och 6 borttagningar
  1. +8
    -6
      game.js

+ 8
- 6
game.js Visa fil

@@ -549,8 +549,10 @@ var macro =


get description() {
result = [];
line = "You are " + (macro.name == "" ? "" : macro.name + ", ") + "a " + length(macro.height, unit, true) + " tall " + macro.species + ". You weigh " + mass(macro.mass, unit) + ".";
var result = [];

var line = "You are " + (macro.name == "" ? "" : macro.name + ", ") + "a " + length(macro.height, unit, true) + " tall " + macro.species + ". You weigh " + mass(macro.mass, unit) + ".";

result.push(line);

if (this.hasTail) {
@@ -597,13 +599,13 @@ var macro =
result.push(line);
}


if (this.hasPouch) {
if (this.pouch.container.count == 0)
result.push("Your belly pouch is flat and empty.");
else
result.push("Your belly pouch is bulging, holding " + this.pouch.container.describe(false) + ".");
line = this.pouch.description;
result.push(line);
}


return result;
},



Laddar…
Avbryt
Spara