diff --git a/recursive-desc.js b/recursive-desc.js index 6f3a3fc..3ab5a9c 100644 --- a/recursive-desc.js +++ b/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 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."; } });