diff --git a/src/js/utilJS.js b/src/js/utilJS.js index ffce2d69b0d2f06289879a348514b17e90958bbb..658f0f6f6340f35703b8adb71cba33183a518373 100644 --- a/src/js/utilJS.js +++ b/src/js/utilJS.js @@ -544,10 +544,11 @@ window.Height = (function() { /** * FIXME: JSdoc syntax error * Helper method - table lookup for nationality/race combinations - * @param {{ [table: string]: number; }} table + * @param {object} table // I think * @param {string|Object} nationality * @param {string} race * @param {undefined} [def] + * @returns {object} // I think */ const nationalityMeanHeight = function(table, nationality, race, def) { return table[`${nationality}.${race}`] || table[nationality] || table[`.${race}`] || table[""] || def; @@ -784,9 +785,9 @@ window.Intelligence = (function() { let maxIntelligence = 100; /** - * FIXME: JSdoc syntax error * Configuration method for the above values - * @param {{ mean: number; limitMult: number[]; limitIntelligence: number[]; skew: number; spread: number; } | { limitMult: number[]; limitIntelligence: number[]; skew: number; spread: number; mean?: undefined; }} [conf] + * @param {object} [conf] // I'm pretty sure + * @returns {object} */ const _config = function(conf) { if (_.isUndefined(conf)) { @@ -862,8 +863,8 @@ window.Intelligence = (function() { /** * FIXME: JSdoc syntax error - * @param {{ mean: number; limitMult: number[]; limitIntelligence: number[]; skew: number; spread: number; } | { limitMult: number[]; limitIntelligence: number[]; skew: number; spread: number; mean?: undefined; }} settings - * @returns {number} + * @param {boolean} settings // no idea for this one + * @returns {object} */ const _randomIntelligence = function(settings) { if (settings) {