浏览代码

Added more shoes and socks. Note: remove this duplicated code later.

tags/v1.0.0
Fen Dweller 6 年前
父节点
当前提交
b10c2e5c7b
共有 2 个文件被更改,包括 41 次插入0 次删除
  1. +12
    -0
      features.js
  2. +29
    -0
      game.js

+ 12
- 0
features.js 查看文件

@@ -739,6 +739,10 @@ options = [
{
"name": "Socks",
"value": "sock"
},
{
"name": "Stockings",
"value": "stocking"
}
]
}
@@ -772,6 +776,14 @@ options = [
"name": "Sandals",
"value": "sandal"
},
{
"name": "High Heels",
"value": "heel",
},
{
"name": "Crocs",
"value": "croc"
}
]
}
]


+ 29
- 0
game.js 查看文件

@@ -116,11 +116,21 @@ let macro =
case "sandal":
result = plural ? "sandals" : "sandal";
break;
case "heel":
return plural ? "high heels" : "high heel";
break;
case "croc":
return plural ? "crocs" : "croc";
break;
}
} else if (this.footSockWorn) {
switch(this.footSock) {
case "sock":
result = "socked " + this.footOnlyDesc(plural,false);
break;
case "stocking":
result = "stocking-wrapped " + this.footOnlyDesc(plural, false);
break;
}
}

@@ -186,11 +196,21 @@ let macro =
case "sandal":
result = plural ? "treads" : "tread";
break;
case "heel":
return plural ? "high heels" : "high heel";
break;
case "croc":
return plural ? "crocs" : "croc";
break;
}
} else if (this.footSockWorn) {
switch(this.footSock) {
case "sock":
result = "socked " + this.toeOnlyDesc(plural,false);
break;
case "stocking":
result = "stocking-wrapped " + this.footOnlyDesc(plural, false);
break;
}
}

@@ -215,6 +235,12 @@ let macro =
case "sandal":
result = plural ? "sandals" : "sandal";
break;
case "heel":
return plural ? "high heels" : "high heel";
break;
case "croc":
return plural ? "crocs" : "croc";
break;
}
return capital ? result.charAt(0).toUpperCase() + result.slice(1) : result;
},
@@ -225,6 +251,9 @@ let macro =
case "sock":
result = plural ? "socks" : "sock";
break;
case "stocking":
result = plural ? "stockings" : "stocking";
break;
}
return capital ? result.charAt(0).toUpperCase() + result.slice(1) : result;
},


正在加载...
取消
保存