From e60c5da487a9604cab7dd7667781549ff6fd7d0f Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Mon, 21 Dec 2020 01:06:16 -0800
Subject: [PATCH] Fix span class, PC age test.

---
 src/npc/startingGirls/startingGirls.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/npc/startingGirls/startingGirls.js b/src/npc/startingGirls/startingGirls.js
index 10c209d4dca..01c6faca6df 100644
--- a/src/npc/startingGirls/startingGirls.js
+++ b/src/npc/startingGirls/startingGirls.js
@@ -498,7 +498,7 @@ App.StartingGirls.applyPlayerOrigin = function(slave) {
 				slave.origin = "$He was the result of unprotected sex with a customer. $His mother abandoned your child on the brothel's doorstep.";
 				slave.custom.tattoo = "$He has your ID number tattooed on $his right breast.";
 			} else {
-				if (slave.actualAge >= V.PC.age + 10) {
+				if (slave.actualAge >= V.PC.actualAge + 10) {
 					slave.origin = "$He was a fellow prostitute who was like a parent to you.";
 				} else {
 					slave.origin = "$He was a fellow underage prostitute you often played with.";
@@ -1170,7 +1170,7 @@ App.StartingGirls.profile = function(slave) {
 		} else {
 			r.push(" young age requires paying the full penalty.");
 		}
-		option.addComment(`<span class=warning>${r.join(" ")}</span>`);
+		option.addComment(`<span class="warning">${r.join(" ")}</span>`);
 	}
 
 	options.addOption(`${His} nationality is`, "nationality", slave).showTextBox()
@@ -1244,7 +1244,7 @@ App.StartingGirls.mental = function(slave) {
 		} else {
 			r.push("young age requires paying the full penalty.");
 		}
-		option.addComment(`<span class=warning>${r.join(" ")}</span>`);
+		option.addComment(`<span class="warning">${r.join(" ")}</span>`);
 	}
 
 	options.addOption("Trust", "trust", slave).showTextBox()
-- 
GitLab