From 5b993c031826d902f732bcdd2d9237c9ba45fe3e Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Thu, 12 Mar 2020 22:51:25 -0400
Subject: [PATCH] k fix

---
 src/js/heroCreator.js | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/js/heroCreator.js b/src/js/heroCreator.js
index bbba28fe383..8c3cbf55e69 100644
--- a/src/js/heroCreator.js
+++ b/src/js/heroCreator.js
@@ -148,32 +148,32 @@ App.Utils.getHeroSlave = function(heroSlave) {
 		/* special slaves exceptions to keep siblings sensible */
 		if (newSlave.mother === -9999 && newSlave.father === -9998) {
 			/* The twins — Camille & Kennerly */
-			for (_k = 0; _k < V.slaves.length; _k++) {
-				if (areSisters(V.slaves[_k], newSlave) > 0) {
-					newSlave.actualAge = V.slaves[_k].actualAge, newSlave.physicalAge = newSlave.actualAge, newSlave.visualAge = newSlave.actualAge, newSlave.ovaryAge = newSlave.actualAge, newSlave.birthWeek = V.slaves[_k].birthWeek;
+			for (let k = 0; k < V.slaves.length; k++) {
+				if (areSisters(V.slaves[k], newSlave) > 0) {
+					newSlave.actualAge = V.slaves[k].actualAge, newSlave.physicalAge = newSlave.actualAge, newSlave.visualAge = newSlave.actualAge, newSlave.ovaryAge = newSlave.actualAge, newSlave.birthWeek = V.slaves[k].birthWeek;
 				}
 			}
 		}
 		if (newSlave.mother === -9997 && newSlave.father === -9996) {
 			/* The siblings — Elisa & Martin */
-			for (_k = 0; _k < V.slaves.length; _k++) {
-				if (areSisters(V.slaves[_k], newSlave) > 0) {
+			for (let k = 0; k < V.slaves.length; k++) {
+				if (areSisters(V.slaves[k], newSlave) > 0) {
 					if (newSlave.birthName === "Elisa") {
-						newSlave.actualAge = V.slaves[_k].actualAge - 1, newSlave.physicalAge = newSlave.actualAge, newSlave.visualAge = newSlave.actualAge, newSlave.ovaryAge = newSlave.actualAge;
+						newSlave.actualAge = V.slaves[k].actualAge - 1, newSlave.physicalAge = newSlave.actualAge, newSlave.visualAge = newSlave.actualAge, newSlave.ovaryAge = newSlave.actualAge;
 					} else if (newSlave.birthName === "Martin") {
-						newSlave.actualAge = V.slaves[_k].actualAge + 1, newSlave.physicalAge = newSlave.actualAge, newSlave.visualAge = newSlave.actualAge, newSlave.ovaryAge = newSlave.actualAge;
+						newSlave.actualAge = V.slaves[k].actualAge + 1, newSlave.physicalAge = newSlave.actualAge, newSlave.visualAge = newSlave.actualAge, newSlave.ovaryAge = newSlave.actualAge;
 					}
 				}
 			}
 		}
 		if (newSlave.mother === -9995 && newSlave.father === -9994) {
 			/* The fruit siblings — Green & Purple Grape */
-			for (_k = 0; _k < V.slaves.length; _k++) {
-				if (areSisters(V.slaves[_k], newSlave) > 0) {
+			for (let k = 0; k < V.slaves.length; k++) {
+				if (areSisters(V.slaves[k], newSlave) > 0) {
 					if (newSlave.birthName === "Green Grape") {
-						newSlave.actualAge = V.slaves[_k].actualAge - 5, newSlave.physicalAge = newSlave.actualAge, newSlave.visualAge = newSlave.actualAge, newSlave.ovaryAge = newSlave.actualAge;
+						newSlave.actualAge = V.slaves[k].actualAge - 5, newSlave.physicalAge = newSlave.actualAge, newSlave.visualAge = newSlave.actualAge, newSlave.ovaryAge = newSlave.actualAge;
 					} else if (newSlave.birthName === "Purple Grape") {
-						newSlave.actualAge = V.slaves[_k].actualAge + 5, newSlave.physicalAge = newSlave.actualAge, newSlave.visualAge = newSlave.actualAge, newSlave.ovaryAge = newSlave.actualAge;
+						newSlave.actualAge = V.slaves[k].actualAge + 5, newSlave.physicalAge = newSlave.actualAge, newSlave.visualAge = newSlave.actualAge, newSlave.ovaryAge = newSlave.actualAge;
 					}
 				}
 			}
-- 
GitLab