From 0f3a99dd5ac75cfce464a673a28d25a5ef1f7d64 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sun, 14 Jun 2020 00:23:33 -0400
Subject: [PATCH] variable work

---
 src/npc/descriptions/longSlave.js | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/npc/descriptions/longSlave.js b/src/npc/descriptions/longSlave.js
index cbb0cf603d8..05c28959ad0 100644
--- a/src/npc/descriptions/longSlave.js
+++ b/src/npc/descriptions/longSlave.js
@@ -161,9 +161,8 @@ App.Desc.longSlave = function({slave = V.activeSlave, saleDescription = false, s
 			r.push(`${He} currently possesses ${slave.origBodyOwner}'s body.`);
 		}
 		if (slave.fetish !== "mindbroken" && slave.fuckdoll === 0 && slave.origBodyOwnerID > 0) {
-			let _lsd = V.slaveIndices[slave.origBodyOwnerID];
-			if (_lsd) {
-				r.push(`${He} is fully aware that ${SlaveFullName(V.slaves[_lsd])} is in ${his} old body.`);
+			if (getSlave(slave.origBodyOwnerID)) {
+				r.push(`${He} is fully aware that ${SlaveFullName(getSlave(slave.origBodyOwnerID))} is in ${his} old body.`);
 			}
 		}
 	}
@@ -385,8 +384,8 @@ App.Desc.longSlave = function({slave = V.activeSlave, saleDescription = false, s
 			}
 		}
 
-		const _pubertyAge = Math.min(slave.pubertyAgeXX, slave.pubertyAgeXY);
-		if (slave.physicalAge < _pubertyAge - 2) {
+		const pubertyAge = Math.min(slave.pubertyAgeXX, slave.pubertyAgeXY);
+		if (slave.physicalAge < pubertyAge - 2) {
 			r.push(`${He} is too sexually immature to have armpit hair.`);
 		} else if (slave.underArmHStyle === "hairless") {
 			r.push(`${His} armpits are perfectly smooth and naturally hairless.`);
@@ -398,9 +397,9 @@ App.Desc.longSlave = function({slave = V.activeSlave, saleDescription = false, s
 			} else {
 				r.push(`${His} armpits are waxed and smooth.`);
 			}
-		} else if ((slave.physicalAge < _pubertyAge - 1)) {
+		} else if ((slave.physicalAge < pubertyAge - 1)) {
 			r.push(`${He} has a few ${slave.underArmHColor} wisps of armpit hair.`);
-		} else if ((slave.physicalAge < _pubertyAge)) {
+		} else if ((slave.physicalAge < pubertyAge)) {
 			r.push(`${He} is on the verge of puberty and has a small patch of ${slave.underArmHColor} armpit hair.`);
 		} else if (slave.underArmHStyle === "shaved") {
 			r.push(`${His} armpits appear hairless, but closer inspection reveals light, ${slave.underArmHColor} stubble.`);
-- 
GitLab