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> Fetal count: $activeSlave.womb.length - <br> 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> Estimated pregnancy adaptation raiting: <<print num(Math.round($activeSlave.pregAdaptation))>> - <br> Estimated safe womb volume: <<print num(Math.round($activeSlave.pregAdaptation*2000))>> cc + <br> Estimated safe womb volume: _safecc cc <</if>> + <br> Currnet fetal count: $activeSlave.womb.length + <br> Estimated womb volume: <<if _safecc > _cc && $geneticMappingUpgrade > 0>>@@.red;_cc@@<<else>>_cc<</if>> cc <br><br> Furthest developed pregnancy: <br> Fetal development week: $activeSlave.preg -- GitLab