During a battle I decided to switch from having a swordsman stationed in my city to a composite bowman, but I lost city defense rating in the exchange.
The city is 23 defense with the swordman in it, but 21 with the composite bowman.
Since I just noticed and as you can see from the units mentioned it's a bit early, I'm just guessing it's unit melee strength that buffs city defense.
Might have been true of vanilla Civ 5, but since everything died to that one archer back then I never noticed.
BTW: A hurt unit buff the city defense less than a full health unit.
The city is 23 defense with the swordman in it, but 21 with the composite bowman.
Since I just noticed and as you can see from the units mentioned it's a bit early, I'm just guessing it's unit melee strength that buffs city defense.
Might have been true of vanilla Civ 5, but since everything died to that one archer back then I never noticed.
BTW: A hurt unit buff the city defense less than a full health unit.