From f0ac3ace18059697fffad43257c778959efb6a19 Mon Sep 17 00:00:00 2001
From: Arkerthan <arkerthan@gmail.com>
Date: Tue, 17 Sep 2019 17:13:58 +0200
Subject: [PATCH] JSDocs

---
 src/npc/descriptions/limbs.js | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/npc/descriptions/limbs.js b/src/npc/descriptions/limbs.js
index 5bc6edde3a3..798c9ec42a1 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)}`;
 		}
-- 
GitLab