There seems to be no way, in the database as structured, to allow building to produce (or provide) a resource. I'd like to be able to do this.
I've been thinking about how it might be done with the game architecture as I understand it, and I'm wondering if there's an event we can register Lua callbacks for, corresponding to the civ gaining a building (by whatever means) and another for them losing it by whatever means, and then an exposed function that allows one to add or remove resources from those available to the owner's civ.
Does this make sense with the architecture as we understand it, as does anyone know if there is any such function and any such potential callbacks?
I've been thinking about how it might be done with the game architecture as I understand it, and I'm wondering if there's an event we can register Lua callbacks for, corresponding to the civ gaining a building (by whatever means) and another for them losing it by whatever means, and then an exposed function that allows one to add or remove resources from those available to the owner's civ.
Does this make sense with the architecture as we understand it, as does anyone know if there is any such function and any such potential callbacks?