From a3e44bf88a8c0a8aea7037d5e01a814450c6a8bd Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Sun, 26 Jan 2020 13:13:26 -0800
Subject: [PATCH] Fix (in backcompat) an old bug in slaveInteract where the
 focus for big dick porn was set to an invalid state

---
 src/js/datatypeCleanupJS.js | 5 +++++
 src/js/porn.js              | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/js/datatypeCleanupJS.js b/src/js/datatypeCleanupJS.js
index f2d19006d33..1eea345bde0 100644
--- a/src/js/datatypeCleanupJS.js
+++ b/src/js/datatypeCleanupJS.js
@@ -913,6 +913,11 @@ window.SlaveDatatypeCleanup = (function SlaveDatatypeCleanup() {
 		for (const genre in App.Porn.getAllGenres()) {
 			slave.porn.fame[genre.fameVar] = Math.max(+slave.porn.fame[genre.fameVar], 0) || 0;
 		}
+
+		// there was a bug where the ui would set focus to "well hung" instead of "stud" for the "big dick" genre.
+		if (slave.porn.focus === "well hung") {
+			slave.porn.focus = "stud";
+		}
 	}
 
 	/**
diff --git a/src/js/porn.js b/src/js/porn.js
index ce0ebae7d0e..4c767e1639f 100644
--- a/src/js/porn.js
+++ b/src/js/porn.js
@@ -393,7 +393,7 @@ App.Porn.Genre.gainer = {
 App.Porn.Genre.stud = {
 	fameVar: "stud",
 	fameName: "big dick",
-	focusName: "stud", /* or "well hung" depending which file you look at, which means this focus is completely broken...TODO: fix in BackCompat! */
+	focusName: "stud",
 	type: App.Porn.GenreType.general,
 	prestigeDesc1: "Thousands have enjoyed the sight of $his throbbing erection",
 	prestigeDesc2: "$His many fans relish the sight of $his heavy dick",
-- 
GitLab