// +population*1.1 is where we take into account farms for bonus food production
let sql = `update cities set
- gold = gold + population * 2,
- bushels = round(
+ credits = credits + population * 2,
+ food = round(
max(
- bushels - (
+ food - (
(soldiers*0.5)+
(population*0.25)+
(attackers*0.75)+
),
population = max(
min(
- population + round(coalesce(bushels/bushels, 0) * population*0.08),
+ population + round(coalesce(food/food, 0) * population*0.08),
farms * 70
),
population
}, { delay: 60000 * nextTickAt});
}
-});
\ No newline at end of file
+});