diff --git a/src/npc/descriptions/limbs.js b/src/npc/descriptions/limbs.js index 5bc6edde3a36477b8b3fd50d349bf776b6beb50c..798c9ec42a1e5cbb7afe2b990e82da78990f8b99 100644 --- a/src/npc/descriptions/limbs.js +++ b/src/npc/descriptions/limbs.js @@ -86,6 +86,12 @@ App.Desc.limbChange = function() { return reaction(slave, oldLimbs, returnTo); } + /** + * @param {App.Entity.SlaveState} slave + * @param {{}} oldLimbs + * @param {string} returnTo + * @returns {string} + */ function prosthetic(slave, oldLimbs, returnTo) { if (!(isProstheticAvailable(slave, "basicL") || isProstheticAvailable(slave, "sexL") || isProstheticAvailable(slave, "beautyL") || isProstheticAvailable(slave, "combatL") @@ -130,6 +136,11 @@ App.Desc.limbChange = function() { return a; } + /** + * @param {number} pos + * @param {number} id + * @returns {string} + */ function entry(pos, id) { if (state[pos] === 1) { return "<div></div>"; @@ -137,6 +148,11 @@ App.Desc.limbChange = function() { return `<div><<radiobutton "_newState[${pos}]" ${id}${state[pos] === id ? " checked" : ""}>></div>`; } + /** + * @param {string} title + * @param {number} id + * @returns {string} + */ function row(title, id) { return `<div>${title}</div>${entry(0, id)}${entry(1, id)}${entry(2, id)}${entry(3, id)}`; }