Browse Source

Fixed bug with singular customary lengths (22 foot 3 inches!). Adjusted areas and base values to be like those of Fen

tags/v0.7.0
Fen Dweller 7 years ago
parent
commit
509c8c18a6
2 changed files with 8 additions and 8 deletions
  1. +7
    -7
      game.js
  2. +1
    -1
      units.js

+ 7
- 7
game.js View File

@@ -18,19 +18,19 @@ var macro =
"scaling": function(value, scale, factor) { return value * Math.pow(scale,factor); },
"species": "crux",
"color" : "blue",
"baseHeight": 3.65,
"baseHeight": 2.26,
get height() { return this.scaling(this.baseHeight, this.scale, 1); },
"baseMass": 1360,
"baseMass": 135,
get mass () { return this.scaling(this.baseMass, this.scale, 3); },
"basePawArea": 1,
"basePawArea": 0.1,
get pawArea() { return this.scaling(this.basePawArea, this.scale, 2); },
"baseAnalVoreArea": 1,
"baseAnalVoreArea": 0.1,
get analVoreArea() { return this.scaling(this.baseAnalVoreArea, this.scale, 2); },
"baseAssArea": 1,
"baseAssArea": 0.4,
get assArea() { return this.scaling(this.baseAssArea, this.scale, 2); },
"baseHandArea": 1,
"baseHandArea": 0.3,
get handArea() { return this.scaling(this.baseHandArea, this.scale, 2); },
"scale": 1,
"scale": 3,

"scaleWithMass": function(mass) {
var startMass = this.mass;


+ 1
- 1
units.js View File

@@ -67,7 +67,7 @@ function customaryLength(m, singular=false) {
var length = round(ft * 12,0);
return length + (singular || length == 1 ? " inch" : " inches");
} else if (ft < 5280) {
var end = customaryLength((ft - Math.floor(ft))/3.28084);
var end = customaryLength((ft - Math.floor(ft))/3.28084, singular);
var length = Math.floor(ft);
return length + (singular || length == 1 ? " foot" : " feet") + " " + end;
} else {


Loading…
Cancel
Save