From 9e7438163016502d2d615067e303807fa78067e4 Mon Sep 17 00:00:00 2001 From: pregmodfan <pregmodfan@cock.li> Date: Tue, 20 Feb 2018 01:50:23 +0200 Subject: [PATCH] logic fix --- src/uncategorized/slaveAssignmentsReport.tw | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/uncategorized/slaveAssignmentsReport.tw b/src/uncategorized/slaveAssignmentsReport.tw index 7f6548ddb54..7c8b5cfb085 100644 --- a/src/uncategorized/slaveAssignmentsReport.tw +++ b/src/uncategorized/slaveAssignmentsReport.tw @@ -339,20 +339,20 @@ <<set $slaves[$i].broodmotherCountDown = 38-$slaves[$i].womb[$slaves[$i].womb.length-1].age>> <</if>> <</if>> - <<set WombProgress($slaves[$i], _pregSpeed)>> <<set $slaves[$i].preg += _pregSpeed>> /*should be removed later, if swithed to fetus.age as master time control.*/ - <<if $slaves[$i].pregWeek <= 0 || $slaves[$i].pregWeek > $slaves[$i].preg>> /* at .preg = 1, .pregWeek should be 1 also */ - <<set $slaves[$i].pregWeek = $slaves[$i].preg>> - <<else>> - <<set $slaves[$i].pregWeek++>> - <</if>> - <<SetBellySize $slaves[$i]>> /* here will be also set through WombGetVolume .bellyPreg, .pregType, to current values. */ /* trick to avoid precision lost error showed like week: 29.499999999999998 */ <<set $slaves[$i].preg = (Math.ceil($slaves[$i].preg*10)/10) >> <<set $slaves[$i].pregKnown = 1>> <</if>> +<<if $slaves[$i].pregWeek <= 0 || $slaves[$i].pregWeek > $slaves[$i].preg>> /* at .preg = 1, .pregWeek should be 1 also */ + <<set $slaves[$i].pregWeek = $slaves[$i].preg>> + <<else>> + <<set $slaves[$i].pregWeek++>> +<</if>> +<<SetBellySize $slaves[$i]>> /* here will be also set through WombGetVolume .bellyPreg, .pregType, to current values. */ + /* end of preg speed and advance*/ /* dublicate functional -- GitLab