CityDamagedByPillagedTilesPercentage
This mod makes it so cities take damage based on how many of its tiles (please read the note at the end) are pillaged, including the city itself (normally impossible to pillage). The damage is calculated as: CityMaxHealth * (Pillaged Tiles / Total Tiles) . If you’d prefer a flat damage per tile, try my other version of this mod.
In other words, if all tiles in range are pillaged, the city takes 100% of its health as damage.
NOTE: The vanilla function to check worked tiles is a bit mysterious. Sometimes multiple cities are considered to be working the same tile (even if one of them is 5+ tiles away, or belongs to a different player), sometimes a tile nearby won’t count as being worked.