From 363d3d410c70d8dc95a37c2ffd0b49560c0386cd Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Sat, 15 Jul 2017 15:50:58 -0400
Subject: [PATCH] stat clamper

---
 src/gui/Encyclopedia/encyclopedia.tw      | 2 +-
 src/uncategorized/longSlaveDescription.tw | 1 +
 src/uncategorized/nextWeek.tw             | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gui/Encyclopedia/encyclopedia.tw b/src/gui/Encyclopedia/encyclopedia.tw
index e0cd7e506f7..1ed4840addf 100644
--- a/src/gui/Encyclopedia/encyclopedia.tw
+++ b/src/gui/Encyclopedia/encyclopedia.tw
@@ -952,7 +952,7 @@ __I do not give credit without explicit permission to do so.__ If you have contr
 ''anon'' for putting up with my javascript incompetence.
 ''anon'' for player family listing.
 ''anon'' for interchangeable prosthetics, advanced facial surgeries, custom nationality distribution and corporation assets overhaul.
-''FCGudder'' for advanced economy reports, image improvements, cleaning and fixing extended-extended family mode, extending building widgets, anaphrodisiacs, name cleaning and likely one to two of these other anon credits.
+''FCGudder'' for advanced economy reports, image improvements, cleaning and fixing extended-extended family mode, extending building widgets, anaphrodisiacs, name cleaning, proper slave summary caching and likely one to two of these other anon credits.
 ''anon'' for filter by assgnment.
 ''anon'' for forcing dicks onto slavegirls.
 ''anon'' for forcing dicks into slavegirls and forced slave riding.
diff --git a/src/uncategorized/longSlaveDescription.tw b/src/uncategorized/longSlaveDescription.tw
index f3051a8ab25..e106dddfc58 100644
--- a/src/uncategorized/longSlaveDescription.tw
+++ b/src/uncategorized/longSlaveDescription.tw
@@ -1,6 +1,7 @@
 :: Long Slave Description [nobr]
 
 <<SlavePronouns $activeSlave>>
+<<SlaveStatClamp $activeSlave>>
 
 /* 000-250-006 */
 <<if $seeImages == 1>>
diff --git a/src/uncategorized/nextWeek.tw b/src/uncategorized/nextWeek.tw
index 7a768692197..4fec5582d58 100644
--- a/src/uncategorized/nextWeek.tw
+++ b/src/uncategorized/nextWeek.tw
@@ -60,6 +60,7 @@
 	<</if>>
 	/% Fix some possible floating point rounding errors, and bring precision to one decimal place. %/
 	<<set $slaves[_i].energy = Math.clamp($slaves[_i].energy.toFixed(1), 0, 100)>>
+	<<SlaveStatClamp $slaves[_i]>>
 	<<if $slaves[_i].fetishStrength > 95>>
 		<<set $slaves[_i].fetishStrength = 100>>
 	<<else>>
-- 
GitLab