Procházet zdrojové kódy

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

sandra_schulz před 4 roky
rodič
revize
70643c5235
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  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