mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:51:30 -04: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) {
|
fun addStat(stat: Stat, amount: Int) {
|
||||||
when (stat) {
|
when (stat) {
|
||||||
Stat.Culture -> { policies.addCulture(amount)
|
Stat.Culture -> { policies.addCulture(amount)
|
||||||
totalCultureForContests += amount }
|
if(amount > 0) totalCultureForContests += amount }
|
||||||
Stat.Science -> tech.addScience(amount)
|
Stat.Science -> tech.addScience(amount)
|
||||||
Stat.Gold -> addGold(amount)
|
Stat.Gold -> addGold(amount)
|
||||||
Stat.Faith -> { religionManager.storedFaith += amount
|
Stat.Faith -> { religionManager.storedFaith += amount
|
||||||
totalFaithForContests += amount }
|
if(amount > 0) totalFaithForContests += amount }
|
||||||
else -> {}
|
else -> {}
|
||||||
// Food and Production wouldn't make sense to be added nationwide
|
// Food and Production wouldn't make sense to be added nationwide
|
||||||
// Happiness cannot be added as it is recalculated again, use a unique instead
|
// Happiness cannot be added as it is recalculated again, use a unique instead
|
||||||
|
Loading…
x
Reference in New Issue
Block a user