diff --git a/src/js/utilJS.js b/src/js/utilJS.js index 98c4b95c9f1308ad7da4b8a78edb38591b01b859..ffce2d69b0d2f06289879a348514b17e90958bbb 100644 --- a/src/js/utilJS.js +++ b/src/js/utilJS.js @@ -544,11 +544,10 @@ window.Height = (function() { /** * FIXME: JSdoc syntax error * Helper method - table lookup for nationality/race combinations - * @param {object} table // I think + * @param {{ [table: string]: number; }} table * @param {string|Object} nationality * @param {string} race * @param {undefined} [def] - * @returns {string} //I think */ const nationalityMeanHeight = function(table, nationality, race, def) { return table[`${nationality}.${race}`] || table[nationality] || table[`.${race}`] || table[""] || def; @@ -787,8 +786,7 @@ window.Intelligence = (function() { /** * FIXME: JSdoc syntax error * Configuration method for the above values - * @param {object} [conf] - * @returns {object} + * @param {{ mean: number; limitMult: number[]; limitIntelligence: number[]; skew: number; spread: number; } | { limitMult: number[]; limitIntelligence: number[]; skew: number; spread: number; mean?: undefined; }} [conf] */ const _config = function(conf) { if (_.isUndefined(conf)) { @@ -1126,9 +1124,7 @@ window.cashFormat = function(s) { */ window.repFormat = function(s) { const V = State.variables; - /* if (!s) { - s = 0; - }*/ + /* if (!s) { s = 0; }*/ if (V.cheatMode === 1 || V.debugMode === 1) { if (s > 0) { return `<span class="green">${num(Math.round(s * 100) / 100)} rep</span>`;