Show number of global followers in Religion Overview (#6654)

This commit is contained in:
SomeTroglodyte 2022-04-30 23:07:48 +02:00 committed by GitHub
parent 1ac2ecb9e8
commit 9b5f70e868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,8 +149,11 @@ class ReligionOverviewTab(
statsTable.add(cityName.toLabel()).right().row()
}
}
val manager = religion.getFounder().religionManager
statsTable.add("Cities following this religion:".toLabel())
statsTable.add(religion.getFounder().religionManager.numberOfCitiesFollowingThisReligion().toLabel()).right().row()
statsTable.add(manager.numberOfCitiesFollowingThisReligion().toLabel()).right().row()
statsTable.add("{Followers of this religion}:".toLabel())
statsTable.add(manager.numberOfFollowersFollowingThisReligion("in all cities").toLabel()).right().row()
val minWidth = max(statsTable.minWidth, beliefsTable.minWidth) + 5