mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 18:50:55 +00:00
gold bug fix
This commit is contained in:
@@ -662,7 +662,7 @@ export class DefaultConfig implements Config {
|
||||
|
||||
const cityWorkers =
|
||||
(adjustedCityPopulation * totalWorkers) / totalPopulation;
|
||||
const ruralWorkers = totalWorkers - cityWorkers;
|
||||
const ruralWorkers = Math.max(totalWorkers - cityWorkers, 0);
|
||||
|
||||
const cityGold = cityWorkers / 2000;
|
||||
const tileGold = (ruralWorkers ** 0.5 * numTiles ** 0.5) / 600;
|
||||
|
||||
Reference in New Issue
Block a user