|
@@ -622,15 +622,18 @@ if $ARGS[0] = 'breastcycle':
|
|
|
!! things that happen when Sveta is lactating lactation['active'] > 1
|
|
|
if lactation['milkgrowday'] < daystart:
|
|
|
!! Lactation rate growth. The higher the lactationrate is, the slower it will grow. I have not found a study on this, so this is pure asumption and common sense.
|
|
|
+ !! funny parabelfunction for the lactrategrowth > 65 - ((1/1466)*((lactrate-304)*(lactrate-304)))
|
|
|
+ lactation['prolactinlvl'] += (lactation['dailyoverdemand']/10000)
|
|
|
if lactation['dailyoverdemand'] > 0 and lactation['breastpumped'] >= 0:
|
|
|
- if lactation['lactaterate'] > 350000:
|
|
|
- lactation['lactaterate'] += (5*lactation['prolactinlvl'])/2
|
|
|
- elseif lactation['lactaterate'] > 600000:
|
|
|
- lactation['lactaterate'] += lactation['prolactinlvl']/2
|
|
|
+ lactation['max_lactrate_growth'] = (65 - ((((lactation['lactaterate']/1000) - 304)*((lactation['lactaterate']/1000) - 304))/1466))*1000
|
|
|
+ if lactation['max_lactrate_growth'] < ((10*lactation['prolactinlvl'])/2) and lactation['max_lactrate_growth'] >= 1000:
|
|
|
+ lactation['lactaterate'] += lactation['max_lactrate_growth']
|
|
|
+ elseif lactation['max_lactrate_growth'] < ((10*lactation['prolactinlvl'])/2) and lactation['max_lactrate_growth'] < 1000:
|
|
|
+ lactation['lactaterate'] += 1000
|
|
|
else
|
|
|
lactation['lactaterate'] += (10*lactation['prolactinlvl'])/2
|
|
|
end
|
|
|
- prolactinlvl = 100
|
|
|
+ lactation['prolactinlvl'] = 100
|
|
|
elseif lactation['dailyoverdemand'] <= 0 and lactation['breastpumped'] > 0:
|
|
|
!! If there was no milk overdemand, sveta will keep her lactationrate level.
|
|
|
lactation['prolactinlvl'] = 100
|