Anyone know what determines both the number of units and the tech level of units for city states? Also, when city states upgrade their units? I allied a city state between me and Japan, and the poor guy had one pikeman and one plain archer in his city (japan had samurai, muskets, x-bows, and pikemen). Japan took him a few turns later. Other times, I'll see city states with a 4-6 (land) units that are clearly the leading tech at the moment. It really doesn't seem to be linked to whether they are militaristic or not.