Browse Source

[fixed] Taking away from fat instead of salo in milk production.

sandra_schulz 4 years ago
parent
commit
70643c5235
1 changed files with 4 additions and 2 deletions
  1. 4 2
      locations/lact_lib.qsrc

+ 4 - 2
locations/lact_lib.qsrc

@@ -337,9 +337,11 @@ if $ARGS[0] = 'prod_milk':
 				end
 				result = lactation['prod_milk_req']
 			else
-				!!	If energy is too low, milk will be produced but there is a chance that salo will shrink.
+				!!	If energy is too low, milk will be produced but there is a chance that fat will shrink.
 				pcs_energy = 1
-				if rand(0,100) > 95: salo -= 1
+				if fat > 0:
+					if rand(0,100) > 95: fat -= 1
+				end
 				if pain['breasts'] < 20: pain['breasts'] += 1
 				result = lactation['prod_milk_req']
 			end