Przeglądaj źródła

Fix an assignment being used instead of a conditional

This was breaking the description of verbose actions.
master
Fen Dweller 5 lat temu
rodzic
commit
95e614d69f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      recursive-macro.js

+ 1
- 1
recursive-macro.js Wyświetl plik

@@ -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 {


Ładowanie…
Anuluj
Zapisz