From 6e467a3656b68773d156e79047d654dc799b9e3b Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Tue, 10 Nov 2020 01:50:18 -0500
Subject: [PATCH] change variable name for sp check

---
 src/endWeek/reports/penthouseReport.js | 28 +++++++++++++-------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/endWeek/reports/penthouseReport.js b/src/endWeek/reports/penthouseReport.js
index 7c687d1ab49..23f7b380e3d 100644
--- a/src/endWeek/reports/penthouseReport.js
+++ b/src/endWeek/reports/penthouseReport.js
@@ -177,7 +177,7 @@ App.EndWeek.penthouseReport = function() {
 	function HGApplication(girlsGirl) {
 		const el = document.createElement("span");
 		const slave = getSlave(girlsGirl.ID);
-		const HGtraining = girlsGirl.training;
+		const headGirlsTraining = girlsGirl.training;
 
 		const {
 			He, His,
@@ -194,13 +194,13 @@ App.EndWeek.penthouseReport = function() {
 		if (S.HeadGirl.sexualFlaw === "abusive" && V.HGSeverity >= 0) {
 			_effectiveness += 10;
 		}
-		if (HGtraining !== "health") {
+		if (headGirlsTraining !== "health") {
 			slave.health.tired += 25;
 		}
 
 		// &nbsp;&nbsp;&nbsp;&nbsp;
 		r.push(`<span style="font-weight: bold">Your Head Girl</span> <span class='slave-name'>${S.HeadGirl.slaveName}</span> notices that <span class='slave-name'>${slave.slaveName}</span>`);
-		switch (HGtraining) {
+		switch (headGirlsTraining) {
 			case "health":
 				r.push(`is unwell.`);
 				break;
@@ -232,7 +232,7 @@ App.EndWeek.penthouseReport = function() {
 				r.push(`isn't as skilled at entertainment as ${he} is.`);
 		}
 
-		if (HGtraining === "health") {
+		if (headGirlsTraining === "health") {
 			r.push(`${He} helps slave.slaveName however ${he} can. The tender care has <span class="green">improved ${slave.slaveName}'s health.</span>`);
 			improveCondition(slave, 10);
 			slave.health.tired = Math.clamp(slave.health.tired - 10, 0, 1000);
@@ -261,7 +261,7 @@ App.EndWeek.penthouseReport = function() {
 				r.push(`${His} heavy ${aNational(S.HeadGirl.nationality)} accent impedes ${his} clarity in ${V.language}, making ${him} somewhat less effective.`);
 			}
 
-			if (HGtraining === "obedience" || HGtraining === "flaw" || HGtraining === "soften") {
+			if (headGirlsTraining === "obedience" || headGirlsTraining === "flaw" || headGirlsTraining === "soften") {
 				if (S.HeadGirl.intelligence + S.HeadGirl.intelligenceImplant > 50) {
 					if (slave.intelligence + slave.intelligenceImplant > 50) {
 						r.push(`${He} needs ${his} wits about ${him} to mold ${slave.slaveName}, who's quite intelligent ${himself2}.`);
@@ -352,7 +352,7 @@ App.EndWeek.penthouseReport = function() {
 				slave.trust += 1;
 			}
 
-			if (HGtraining === "obedience") {
+			if (headGirlsTraining === "obedience") {
 				slave.training = 0;
 				_effectiveness -= (slave.intelligence + slave.intelligenceImplant) / 3;
 				if (_effectiveness <= 0) {
@@ -367,7 +367,7 @@ App.EndWeek.penthouseReport = function() {
 						r.push(`${He} acts as another pair of eyes watching ${slave.slaveName} and metes out punishments, <span class="gold">improving slave.slaveName's servitude.</span>`);
 					}
 				}
-			} else if (HGtraining === "paraphilia") {
+			} else if (headGirlsTraining === "paraphilia") {
 				_effectiveness -= (slave.intelligence + slave.intelligenceImplant) / 3;
 				slave.training += _effectiveness;
 				r.push(`${S.HeadGirl.slaveName} does ${his} best to get slave.slaveName past it with punishments and rewards,`);
@@ -378,7 +378,7 @@ App.EndWeek.penthouseReport = function() {
 				} else {
 					r.push(`and makes partial progress.`);
 				}
-			} else if (HGtraining === "flaw") {
+			} else if (headGirlsTraining === "flaw") {
 				_effectiveness -= (slave.intelligence + slave.intelligenceImplant) / 3;
 				slave.training += _effectiveness;
 				r.push(`${S.HeadGirl.slaveName} punishes slave.slaveName whenever ${he} catches ${him2} indulging in ${his2} bad habits,`);
@@ -393,7 +393,7 @@ App.EndWeek.penthouseReport = function() {
 				} else {
 					r.push(`and makes partial progress.`);
 				}
-			} else if (HGtraining === "soften") {
+			} else if (headGirlsTraining === "soften") {
 				_effectiveness -= (slave.intelligence + slave.intelligenceImplant) / 3;
 				slave.training += _effectiveness;
 				r.push(`${He} punishes slave.slaveName whenever ${he} sees ${him2} breaking the rules yet does ${his} best to retain what makes the slave special,`);
@@ -408,7 +408,7 @@ App.EndWeek.penthouseReport = function() {
 				} else {
 					r.push(`and makes partial progress.`);
 				}
-			} else if (HGtraining === "oral skill") {
+			} else if (headGirlsTraining === "oral skill") {
 				slave.training = 0;
 				if (S.HeadGirl.fetish === "cumslut" && S.HeadGirl.fetishStrength > 60) {
 					r.push(`In spare moments ${he} teaches ${slave.slaveName} how to suck cocks, cunts, and assholes. ${His} enthusiasm for oral sex is infectious. slave.slaveName's <span class="green">oral skills have improved.</span>`);
@@ -423,7 +423,7 @@ App.EndWeek.penthouseReport = function() {
 					r.push(`In spare moments ${he} teaches ${slave.slaveName} how to suck cocks, cunts, and assholes. slave.slaveName's <span class="green">oral skills have improved.</span>`);
 				}
 				slaveSkillIncrease('oral', slave, Math.ceil(_effectiveness / 10));
-			} else if (HGtraining === "anal skill") {
+			} else if (headGirlsTraining === "anal skill") {
 				slave.training = 0;
 				if (S.HeadGirl.fetish === "buttslut" && S.HeadGirl.fetishStrength > 60) {
 					r.push(`In spare moments ${he} teaches ${slave.slaveName} how to take it up the ass. Your Head Girl's enthusiasm for backdoor loving is infectious. slave.slaveName's <span class="green">anal skills have improved.</span>`);
@@ -438,7 +438,7 @@ App.EndWeek.penthouseReport = function() {
 					r.push(`In spare moments ${he} teaches ${slave.slaveName} how to take a dick up the butt. slave.slaveName's <span class="green">anal skills have improved.</span>`);
 				}
 				slaveSkillIncrease('anal', slave, Math.ceil(_effectiveness / 10));
-			} else if (HGtraining === "fuck skill") {
+			} else if (headGirlsTraining === "fuck skill") {
 				slave.training = 0;
 				if (S.HeadGirl.energy > 95) {
 					r.push(`In spare moments ${he} teaches ${slave.slaveName} how to take a dick. Your Head Girl's enthusiasm for sex is infectious. slave.slaveName's <span class="green">vanilla sex skills have improved.</span>`);
@@ -453,11 +453,11 @@ App.EndWeek.penthouseReport = function() {
 					r.push(`In spare moments ${he} teaches ${slave.slaveName} how to take a dick. slave.slaveName's <span class="green">vanilla sex skills have improved.</span>`);
 				}
 				slaveSkillIncrease('vaginal', slave, Math.ceil(_effectiveness / 10));
-			} else if (HGtraining === "whore skill") {
+			} else if (headGirlsTraining === "whore skill") {
 				slave.training = 0;
 				r.push(`In spare moments ${he} teaches ${slave.slaveName} how to prostitute ${himself2}. ${slave.slaveName}'s <span class="green">whoring skills have improved.</span>`);
 				slaveSkillIncrease('whoring', slave, Math.ceil(_effectiveness / 10));
-			} else if (HGtraining === "entertain skill") {
+			} else if (headGirlsTraining === "entertain skill") {
 				slave.training = 0;
 				if (S.HeadGirl.fetish === "humiliation" && S.HeadGirl.fetishStrength > 60) {
 					r.push(`In spare moments ${he} teaches ${slave.slaveName} how to entertain. Your Head Girl's enthusiasm for public display is infectious. slave.slaveName's <span class="green">entertainment skills have improved.</span>`);
-- 
GitLab