Преглед на файлове

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…
Отказ
Запис