Преглед изворни кода

Fix an assignment being used instead of a conditional

This was breaking the description of verbose actions.
master
Fen Dweller пре 5 година
родитељ
комит
95e614d69f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      recursive-macro.js

+ 1
- 1
recursive-macro.js Прегледај датотеку

@@ -942,7 +942,7 @@ function defaultDescribe(verbose = true, parent, descAs) {
break;

} if (verbose) {
if (parent.count = 1) { //singular parent (specifying single to catch cases where groupLessThan3 = true, otherwise it would output "1 towns" instead of "a town"
if (parent.count == 1) { //singular parent (specifying single to catch cases where groupLessThan3 = true, otherwise it would output "1 towns" instead of "a town"
if (things[parent.name].contents.length > 0) {
return (things[parent.name].descriptor[0] + descriptorConjunction + describe_all(parent.contents, false) + descriptorEnd);
} else {


Loading…
Откажи
Сачувај