bahrmichael / factorio-tycoon

GNU General Public License v3.0
10 stars 7 forks source link

gui: show requirement of minum lower tier houses #234

Closed bahrmichael closed 9 months ago

bahrmichael commented 11 months ago

Currently we show a warning, if you don't have the right amount of lower tier houses compared to the higher tier houses.

We also have an absolute lower number, that we should also display.

    local residentialCount = ((city.buildingCounts or {})["residential"] or 0)
    if residentialCount < 20 then
        return false
    end
    local simpleCount = ((city.buildingCounts or {})["simple"] or 0)
    if simpleCount < 20 then
        return false
    end
bahrmichael commented 9 months ago

Fixed