Dancing Hoskuld
Deity
The buildings are not National Wonders. They are there to "fix" a bug in play, especially for the AI. It is for the case when you have the resource but it is not in the vicinity of any city. If the resource is available in the vicinity of any city then the bug is not there and you should not be able to build the building anywhere. This is especially true for animals where if you have the animal in the vicinity of one city then you have the ability to make it in the vicinity of all cities.
A proper "fix" for metals would let you build one building for every instance of the resource in your nation. It would involve counting the number of the resource you have in the nation and subtracting the number of cities with with the resource in the building. This would be very slow (or take some memory) as it would require a pass over every plot on the map every turn in Python because of what is available to Python.
A proper "fix" for metals would let you build one building for every instance of the resource in your nation. It would involve counting the number of the resource you have in the nation and subtracting the number of cities with with the resource in the building. This would be very slow (or take some memory) as it would require a pass over every plot on the map every turn in Python because of what is available to Python.