From 6736908e7e9a47b0538387fe3ed4a55548cbbb8b Mon Sep 17 00:00:00 2001
From: Anu <anulithic@gmail.com>
Date: Thu, 2 Mar 2023 22:18:44 -0800
Subject: [PATCH] Granular summaryStats for hormoneBalance

---
 src/js/slaveSummaryWidgets.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/js/slaveSummaryWidgets.js b/src/js/slaveSummaryWidgets.js
index c9fc763f3da..29efaf08b06 100644
--- a/src/js/slaveSummaryWidgets.js
+++ b/src/js/slaveSummaryWidgets.js
@@ -275,11 +275,11 @@ App.UI.SlaveSummaryRenderers = function() {
 		 */
 		hormoneBalance: function(slave, c) {
 			if (slave.hormoneBalance <= -21) {
-				helpers.makeSpan(c, "HB:M", ["deepskyblue", "strong"]);
+				helpers.makeSpan(c, "HB:M", ["deepskyblue", "strong"], false, slave.hormoneBalance);
 			} else if (slave.hormoneBalance <= 20) {
-				helpers.makeSpan(c, "HB:N", ["pink", "strong"]);
+				helpers.makeSpan(c, "HB:N", ["pink", "strong"], false, slave.hormoneBalance);
 			} else if (slave.hormoneBalance <= 500) {
-				helpers.makeSpan(c, "HB:F", ["pink", "strong"]);
+				helpers.makeSpan(c, "HB:F", ["pink", "strong"], false, slave.hormoneBalance);
 			}
 		},
 
@@ -634,7 +634,7 @@ App.UI.SlaveSummaryRenderers = function() {
 		hormoneBalance: function(slave, c) {
 			const colorClass = slave.hormoneBalance <= -21 ? "deepskyblue" : "pink";
 			const desc = App.Ratings.numeric(data.long.hormoneBalance, slave.hormoneBalance + 500);
-			helpers.makeSpan(c, desc + " hormone balance.", colorClass);
+			helpers.makeSpan(c, desc + " hormone balance", colorClass, true, slave.hormoneBalance);
 		},
 
 		/**
-- 
GitLab