This is basically what I did with my Interstellar Colonization mod before I canceled it. I basically added a new yield type which I called PopCap, which limited population limited. (It was reseted each turn unlike food)
And you could add it to everything which you can add the other yields to, terrain, improvements, buildings, etc.
So I could definitely program this. But maybe through something other than a new yieldtype. (you just cant get new yield types to show up on the map, but maybe that's not needed)
Can't say I got time atm though, got lots of other stuff to mod first. (But I might cram it in somewhere sometime cause this shouldn't take too long)
And you could add it to everything which you can add the other yields to, terrain, improvements, buildings, etc.
So I could definitely program this. But maybe through something other than a new yieldtype. (you just cant get new yield types to show up on the map, but maybe that's not needed)
Can't say I got time atm though, got lots of other stuff to mod first. (But I might cram it in somewhere sometime cause this shouldn't take too long)