Skip to content
Snippets Groups Projects
Commit c0a8a801 authored by svornost's avatar svornost
Browse files

fix jsdoc, indentation

parent f48a3062
No related branches found
No related tags found
1 merge request!7318Fixes
...@@ -183,7 +183,7 @@ App.Facilities.Farmyard.farmyard = function() { ...@@ -183,7 +183,7 @@ App.Facilities.Farmyard.farmyard = function() {
upgradeCost = Math.trunc(V.farmyard * 1000 * V.upgradeMultiplierArcology), upgradeCost = Math.trunc(V.farmyard * 1000 * V.upgradeMultiplierArcology),
farmhands = App.Entity.facilities.farmyard.totalEmployeesCount; farmhands = App.Entity.facilities.farmyard.totalEmployeesCount;
cost.append(cashFormat(upgradeCost)); cost.append(cashFormat(upgradeCost));
desc.append(`It can support ${V.farmyard} farmhands. Currently there ${farmhands === 1 ? `is` : `are`} ${farmhands} ${farmhands === 1 ? `farmhand` : `farmhands`} in ${V.farmyardName}. `); desc.append(`It can support ${V.farmyard} farmhands. Currently there ${farmhands === 1 ? `is` : `are`} ${farmhands} ${farmhands === 1 ? `farmhand` : `farmhands`} in ${V.farmyardName}. `);
note.append(` Costs `, cost, ` and will increase upkeep costs`); note.append(` Costs `, cost, ` and will increase upkeep costs`);
...@@ -370,7 +370,7 @@ App.Facilities.Farmyard.farmyard = function() { ...@@ -370,7 +370,7 @@ App.Facilities.Farmyard.farmyard = function() {
unitCost = Math.trunc(1000 * V.upgradeMultiplierArcology); unitCost = Math.trunc(1000 * V.upgradeMultiplierArcology);
cost.append(cashFormat(unitCost)); cost.append(cashFormat(unitCost));
if (V.farmMenialsSpace < 500) { if (V.farmMenialsSpace < 500) {
desc.append(`There is enough room in ${V.farmyardName} to build housing, enough to give ${V.farmMenialsSpace + 100} menial slaves a place to sleep and relax. `); desc.append(`There is enough room in ${V.farmyardName} to build housing, enough to give ${V.farmMenialsSpace + 100} menial slaves a place to sleep and relax. `);
...@@ -463,11 +463,11 @@ App.Facilities.Farmyard.farmyard = function() { ...@@ -463,11 +463,11 @@ App.Facilities.Farmyard.farmyard = function() {
/** /**
* Creates a new rule button * Creates a new rule button
* @param {string|[string]} descText The base description for the rule * @param {string|string[]} descText The base description for the rule
* @param {string} boldText The part in bold * @param {string} boldText The part in bold
* @param {string} linkText The link text * @param {string} linkText The link text
* @param {[string]} enabled Variables to be set to 1 * @param {string[]} enabled Variables to be set to 1
* @param {[string]} disabled Variables to be set to 0 * @param {string[]} disabled Variables to be set to 0
*/ */
function makeRule(descText, boldText, linkText, enabled, disabled) { function makeRule(descText, boldText, linkText, enabled, disabled) {
const const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment