From cb3554fa9f992b422faf91d7abbdd93920d097fc Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Wed, 14 Oct 2020 21:00:52 -0400
Subject: [PATCH] skill fix

---
 src/markets/specificMarkets/customSlaveMarket.js | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/markets/specificMarkets/customSlaveMarket.js b/src/markets/specificMarkets/customSlaveMarket.js
index 26e41b0cc75..0d6228c7814 100644
--- a/src/markets/specificMarkets/customSlaveMarket.js
+++ b/src/markets/specificMarkets/customSlaveMarket.js
@@ -651,12 +651,12 @@ App.Markets["Custom Slave"] = function() {
 		el.append(choicesMaker(slaveProperty, choices, description));
 
 		function description() {
-			if (slave.skills <= 10) {
+			if (slave.skills < 35) {
 				return `Sexually unskilled. `;
-			} else if (slave.skills <= 15) {
-				return `Basic sex skills. `;
-			} else {
+			} else if (slave.skills < 65) {
 				return `Sexually skilled. `;
+			} else {
+				return `Sexually expert. `;
 			}
 		}
 
@@ -678,7 +678,7 @@ App.Markets["Custom Slave"] = function() {
 		function description() {
 			if (slave.skill.whore <= 10) {
 				return `Unskilled at prostitution and entertainment. `;
-			} else if (slave.skills <= 15) {
+			} else if (slave.skill.whore <= 15) {
 				return `Basic skills at prostitution and entertainment. `;
 			} else {
 				return `Skilled at prostitution and entertainment. `;
@@ -1042,7 +1042,7 @@ App.Markets["Custom Slave"] = function() {
 	 */
 	function createDescription(element, text, id) {
 		const span = document.createElement('span');
-		span.id = `${id}-text`;
+		span.id = (`${id}-text`).replace(/\./g, "-");
 		span.append(text());
 		element.append(span);
 	}
@@ -1061,7 +1061,7 @@ App.Markets["Custom Slave"] = function() {
 					text,
 					() => {
 						_.set(slave, slaveParam, (Number(value) || value));
-						jQuery(`#${slaveParam}-text`).empty().append(description());
+						jQuery(`#${(slaveParam).replace(/\./g, "-")}-text`).empty().append(description());
 					}
 				)
 			);
-- 
GitLab