src/utils/population.ts
Function updatePopulation
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function updatePopulation(pop:number, playerCiv:Civilization, game:Game, citizens:Collection<Citizen>, options) {
let popGrowthCost = u.elt('.pop-growth-cost-text');
let populationText = u.elt('.population-text');
let popMetric = u.elt('.metric-population');
Function updatePopulation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
export function updatePopulation(pop:number, playerCiv:Civilization, game:Game, citizens:Collection<Citizen>, options) {