|
@@ -294,9 +294,12 @@ end
|
|
|
!! This function is used for breastgrowth. When nbsize, magicf2b, silicone, alveolicount or the alveoliexpandlvl are changed the breastccm changes. Everything will be written back to the specific variable
|
|
|
if $ARGS[0] = 'BreastGrowth':
|
|
|
!! usage func('lact_lib','BreastGrowth')
|
|
|
+ !! Some checkers for edge cases where something messed with the lactation system.
|
|
|
if lactation['breasttissueinitiated'] <= 0: func('lact_lib','init_breasttissue')
|
|
|
if lactation['breastccm'] <= 0: func('lact_lib','breastrecalc')
|
|
|
if lactation['breastccm'] <= 0: lactation['breastccm'] = 1
|
|
|
+ if lactation['active'] > 0 and lactation['alveoliexpandlvl_change'] < lactation['alveoliexpandlvl']: lactation['alveoliexpandlvl_change'] = lactation['alveoliexpandlvl']
|
|
|
+ !! setting everything in here.
|
|
|
if lactation['breastccm'] <> func('lact_lib','bsizetoccm',(nbsize + magicf2b + silicone)) or lactation['alveolicount_change'] <> lactation['alveolicount'] or lactation['alveoliexpandlvl_change'] <> lactation['alveoliexpandlvl']:
|
|
|
!! There are general breast growth events that will increase nbsize, magicf2b or silicone. So the breast "contents" have to be recalculated. This is happening here with the breastrecalc function.
|
|
|
!! Now the fun part. Warning, crazy math ahead. I got headaches while doing this, so better not mess with it or you will break everything.
|