Skip to content
Snippets Groups Projects
Commit 9df1bffb authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'pregmod-dev' into 'pregmod-master'

Fix for milking

See merge request pregmodfan/fc-pregmod!5559
parents 53cc2270 caba00ad
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ window.saGetMilked = (function saGetMilked() { ...@@ -96,7 +96,7 @@ window.saGetMilked = (function saGetMilked() {
function jobPreface(slave) { function jobPreface(slave) {
r += `gets milked this week.`; r += `gets milked this week.`;
if (V.dairy > 0 && V.dairyRestraintsSetting < 2) { if (V.dairy > 0 && V.dairyRestraintsSetting < 2) {
if ((V.universalRulesFacilityWork === 1 && V.slave.assignment === "get milked" && V.dairySpots > 0) || (slave.assignment === "work in the dairy")) { if ((V.universalRulesFacilityWork === 1 && slave.assignment === "get milked" && V.dairySpots > 0) || (slave.assignment === "work in the dairy")) {
if (slave.assignment === "get milked") { if (slave.assignment === "get milked") {
r += ` Since there's extra space in ${V.dairyName}, ${he} spends most of ${his} milkings there.`; r += ` Since there's extra space in ${V.dairyName}, ${he} spends most of ${his} milkings there.`;
V.dairySpots -= 1; // Would this need to be pulled for statistics gathering? V.dairySpots -= 1; // Would this need to be pulled for statistics gathering?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment