Skip to content
Snippets Groups Projects
Commit ed5b31a2 authored by i107760's avatar i107760
Browse files

Apply suggestion to src/js/food.js

parent e24b92b0
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ App.Facilities.Farmyard.foodAmount = function(slave) { ...@@ -19,7 +19,7 @@ App.Facilities.Farmyard.foodAmount = function(slave) {
if (V.farmyardUpgrade.machinery === 1) { if (V.farmyardUpgrade.machinery === 1) {
food += 65; // machinery upgrade for farmyard food += 65; // machinery upgrade for farmyard
} }
if (!slave) { if (V.Farmer !== 0) {
return null; return null;
} else { } else {
if (V.Farmer !== 0) { // if a farmer is assigned if (V.Farmer !== 0) { // if a farmer is assigned
......
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