From bbb0c64641b98003484f1e5d8ee3bb4b329a7bcc Mon Sep 17 00:00:00 2001
From: pregmodfan <pregmodfan@cock.li>
Date: Wed, 22 May 2019 00:23:12 +0300
Subject: [PATCH] more colorful print of cc's

---
 src/pregmod/analyzePregnancy.tw | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/pregmod/analyzePregnancy.tw b/src/pregmod/analyzePregnancy.tw
index 195aae2569d..592b8190a0c 100644
--- a/src/pregmod/analyzePregnancy.tw
+++ b/src/pregmod/analyzePregnancy.tw
@@ -16,12 +16,14 @@
 
 	<br><br>
 	Overall statistics:
-	<br>&nbsp;&nbsp;&nbsp;&nbsp;Fetal count: $activeSlave.womb.length
-	<br>&nbsp;&nbsp;&nbsp;&nbsp;Estimated womb volume: <<print num(Math.round($activeSlave.bellyPreg))>> cc
+	<<set _cc = num(Math.round($activeSlave.bellyPreg))>>
+	<<set _safecc = num(Math.round($activeSlave.pregAdaptation*2000))>>
 	<<if $geneticMappingUpgrade > 0>>
 		<br>&nbsp;&nbsp;&nbsp;&nbsp;Estimated pregnancy adaptation raiting: <<print num(Math.round($activeSlave.pregAdaptation))>>
-		<br>&nbsp;&nbsp;&nbsp;&nbsp;Estimated safe womb volume: <<print num(Math.round($activeSlave.pregAdaptation*2000))>> cc
+		<br>&nbsp;&nbsp;&nbsp;&nbsp;Estimated safe womb volume: _safecc cc
 	<</if>>
+	<br>&nbsp;&nbsp;&nbsp;&nbsp;Currnet fetal count: $activeSlave.womb.length
+	<br>&nbsp;&nbsp;&nbsp;&nbsp;Estimated womb volume: <<if _safecc > _cc && $geneticMappingUpgrade > 0>>@@.red;_cc@@<<else>>_cc<</if>> cc
 	<br><br>
 	Furthest developed pregnancy:
 	<br>&nbsp;&nbsp;&nbsp;&nbsp;Fetal development week: $activeSlave.preg
-- 
GitLab