mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-15 04:14:44 +07:00
fix bug with contest quests (#5554)
This commit is contained in:
parent
741f2522b9
commit
6fdbc8a8da
@ -934,11 +934,11 @@ class CivilizationInfo {
|
||||
fun addStat(stat: Stat, amount: Int) {
|
||||
when (stat) {
|
||||
Stat.Culture -> { policies.addCulture(amount)
|
||||
totalCultureForContests += amount }
|
||||
if(amount > 0) totalCultureForContests += amount }
|
||||
Stat.Science -> tech.addScience(amount)
|
||||
Stat.Gold -> addGold(amount)
|
||||
Stat.Faith -> { religionManager.storedFaith += amount
|
||||
totalFaithForContests += amount }
|
||||
if(amount > 0) totalFaithForContests += amount }
|
||||
else -> {}
|
||||
// Food and Production wouldn't make sense to be added nationwide
|
||||
// Happiness cannot be added as it is recalculated again, use a unique instead
|
||||
|
Loading…
Reference in New Issue
Block a user