Update city stats when finishing city-state quests - #4963

This commit is contained in:
yairm210
2021-08-23 22:31:41 +03:00
parent 6db92da52a
commit b157313bb9

View File

@ -345,8 +345,14 @@ class QuestManager {
civInfo.getDiplomacyManager(assignedQuest.assignee).influence += rewardInfluence
if (rewardInfluence > 0)
assignee.addNotification("[${civInfo.civName}] rewarded you with [${rewardInfluence.toInt()}] influence for completing the [${assignedQuest.questName}] quest.",
civInfo.getCapital().location, civInfo.civName, "OtherIcons/Quest")
assignee.addNotification(
"[${civInfo.civName}] rewarded you with [${rewardInfluence.toInt()}] influence for completing the [${assignedQuest.questName}] quest.",
civInfo.getCapital().location, civInfo.civName, "OtherIcons/Quest"
)
// We may have received bonuses from city-state friend-ness or ally-ness
for (city in civInfo.cities)
city.cityStats.update()
}
/** Returns the score for the [assignedQuest] */