瀏覽代碼

Changed hands and paws to use lengths/widths

tags/v1.0.0
Fen Dweller 6 年之前
父節點
當前提交
bdee6fa99c
共有 2 個檔案被更改,包括 28 行新增10 行删除
  1. +22
    -8
      features.js
  2. +6
    -2
      game.js

+ 22
- 8
features.js 查看文件

@@ -529,18 +529,32 @@ options = [
"unit": "mass"
},
{
"name": "Paw area",
"id": "basePawArea",
"name": "Paw length",
"id": "basePawLength",
"type": "float",
"default": "0.1",
"unit": "area"
"default": "0.15",
"unit": "length"
},
{
"name": "Hand area",
"id": "baseHandArea",
"name": "Paw width",
"id": "basePawWidth",
"type": "float",
"default": "0.1",
"unit": "area"
"default": "0.15",
"unit": "length"
},
{
"name": "Hand length",
"id": "baseHandLength",
"type": "float",
"default": "0.25",
"unit": "length"
},
{
"name": "Hand width",
"id": "baseHandWidth",
"type": "float",
"default": "0.15",
"unit": "length"
},
{
"name": "Ass area",


+ 6
- 2
game.js 查看文件

@@ -77,10 +77,14 @@ let macro =
"scaling": function(value, scale, factor) { return value * Math.pow(scale,factor); },
get height() { return this.scaling(this.baseHeight, this.scale, 1); },
get mass () { return this.scaling(this.baseMass, this.scale, 3); },
get pawArea() { return this.scaling(this.basePawArea * this.pawScale * this.pawScale, this.scale, 2); },
get pawLength() { return this.scaling(this.basePawLength * this.pawScale, this.scale, 1); },
get pawWidth() { return this.scaling(this.basePawWidth * this.pawScale, this.scale, 1); },
get pawArea() { return this.pawLength * this.pawWidth; },
get analVoreArea() { return this.scaling(Math.pow(this.baseAnalVoreDiameter * this.assScale, 2), this.scale, 2); },
get assArea() { return this.scaling(this.baseAssArea * this.assScale, this.scale, 2); },
get handArea() { return this.scaling(this.baseHandArea, this.scale, 2); },
get handLength() { return this.scaling(this.baseHandLength, this.scale, 1); },
get handWidth() { return this.scaling(this.baseHandWidth, this.scale, 1); },
get handArea() { return this.handLength * this.handWidth },

get wingLength() { return this.scaling(this.baseWingLength, this.scale, 1); },
get wingWidth() { return this.scaling(this.baseWingWidth, this.scale, 1); },


Loading…
取消
儲存