瀏覽代碼

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

sandra_schulz 4 年之前
父節點
當前提交
70643c5235
共有 1 個文件被更改,包括 4 次插入2 次删除
  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