diff --git a/src/art/vector/VectorArtJS.js b/src/art/vector/VectorArtJS.js index 3da76328829c64dffd0f46ba2d17538f9f5c38e3..5295d7e10723260e28f416d0ee354a07e32acc0b 100644 --- a/src/art/vector/VectorArtJS.js +++ b/src/art/vector/VectorArtJS.js @@ -1,4 +1,4 @@ -window.VectorArt = (function() { +window.VectorArt = (function () { "use strict"; let V, T, slave; let r; @@ -2679,7 +2679,7 @@ window.VectorArt = (function() { return VectorArt; })(); -window.LegacyVectorArt = function(slave, artSize) { +window.LegacyVectorArt = function (slave, artSize) { const filePath = "'resources/vector"; const skinFilePath = `${filePath}/body/white`; const wearingLatex = slave.clothes === "a Fuckdoll suit" || slave.clothes === "restrictive latex" || slave.clothes === "a latex catsuit"; diff --git a/src/js/DefaultRules.js b/src/js/DefaultRules.js index 90ed3d4ce5e15732d65c95663fee18ee48d31239..c94323529c1f644a6d2bd5da1cac1d911c4dd383 100644 --- a/src/js/DefaultRules.js +++ b/src/js/DefaultRules.js @@ -1,6 +1,6 @@ // this code applies RA rules onto slaves -window.DefaultRules = (function() { +window.DefaultRules = (function () { "use strict"; let V; let r; @@ -1353,7 +1353,7 @@ window.DefaultRules = (function() { } } if (_priorities.length > 1) { - _priorities = _priorities.sort(function(a, b) { + _priorities = _priorities.sort(function (a, b) { if (a.weight > b.weight) { return -1; } diff --git a/src/js/slaveGenerationJS.js b/src/js/slaveGenerationJS.js index bf7c53c90520688afc7e326b3b1df2c5440f0d3f..5bb707929cbc3e32a843a4936587acd03d7cfdb2 100644 --- a/src/js/slaveGenerationJS.js +++ b/src/js/slaveGenerationJS.js @@ -43,11 +43,11 @@ window.generateName = function generateName(nationality, race, male, filter = _. }; /** - * FIXME: JSdoc syntax error * @param {string | number} nationality * @param {any} race * @param {any} male - * @param {() => true} [filter] Default: allow all + * @param {Function} [filter] Default: allow all + * @returns {string} */ window.generateSurname = function generateSurname(nationality, race, male, filter = _.stubTrue) { const result = jsEither( diff --git a/src/js/storyJS.js b/src/js/storyJS.js index a3a96dd51155c1ec4a64c0150aa497a773abe7a2..a58bc99bbe522b7a4e5f52977ff827be403c3447 100644 --- a/src/js/storyJS.js +++ b/src/js/storyJS.js @@ -140,9 +140,8 @@ window.canImpreg = function (slave1, slave2) { }; /** - * FIXME: JSdoc syntax error * Determines whether PC is fertile - * @param {{ preg: number; pregWeek: number; vagina: number; }} PC + * @param {object} PC * @returns {boolean} */ window.isPlayerFertile = function (PC) { @@ -598,8 +597,7 @@ window.SoftenSexualFlaw = function SoftenSexualFlaw(slave) { }; /** - * FIXME: JSdoc syntax error - * @param {{ title: number; pronoun: string; possessivePronoun: string; possessive: string; object: string; objectReflexive: string; noun: string; }} PC + * @param {object} PC */ window.generatePlayerPronouns = function (PC) { if (PC.title === 0) {