浏览代码

Add more stomping. Fix doubled-up foot name

tags/v1.1.2
Fen Dweller 5 年前
父节点
当前提交
06b99e8aa4
共有 1 个文件被更改,包括 26 次插入2 次删除
  1. +26
    -2
      recursive-desc.js

+ 26
- 2
recursive-desc.js 查看文件

@@ -9,6 +9,10 @@ function plural(quantity, singular, plural) {
return quantity > 1 ? plural : singular;
}

function capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}

function getDefault(name) {
let tokens = name.split("-");
for (let i=0; i<tokens.length; i++) {
@@ -205,7 +209,27 @@ function defaultStomp(container, macro, verbose, flat) {
else if (isSadistic(macro))
return "Your " + macro.footDesc(false) + " comes down on " + container.describe(verbose) + ", crushing your prey into gore and rubble with ease as your " + macro.toeDesc(true) + " shear bone and snap metal.";
else if (isFatal(macro))
return "You crush " + container.describe(verbose) + " under" + macro.footDesc(false,false,true) + ".";
return pickString([
"You",
pickString("crush", "smash", "flatten"),
container.describe(verbose),
pickString("under", "beneath", "with"),
"your",
macro.footDesc(false,false,true) + "."
], [
capitalize(container.describe(verbose)),
(container.count > 1 ? "are" : "is"),
pickString("crushed", "flattened"),
pickString("under", "beneath"),
"your",
pickString("heavy", "weighty", "powerful"),
macro.footDesc(false,false,true) + "."
], [
"A swift stroke of your",
macro.footDesc(false,false,true),
pickString("crushes", "smashes", "flattens"),
container.describe(verbose)
]).join(" ");
else
return "You step on " + container.describe(verbose) + ".";
}
@@ -2306,7 +2330,7 @@ rules["stomp"].push({
macro.pawArea > 50 &&
isGory(macro);
}, "desc": function(container, macro, verbose, flat) {
return "You bring your " + length(macro.pawWidth, unit, true) + " wide " + macro.footDesc() + " " + macro.footDesc() + " down on " + container.describe(verbose) + ". As your " + macro.footDesc() + " impacts its target, you feel its weight sink through buildings and into the \
return "You bring your " + length(macro.pawWidth, unit, true) + " wide " + macro.footDesc() + " down on " + container.describe(verbose) + ". As your " + macro.footDesc() + " impacts its target, you feel its weight sink through buildings and into the \
ground. After you lift your " + macro.soleDesc() + ", a deep indent full of rubble and mangled corpses is revealed.";
}
});


正在加载...
取消
保存