mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 22:06:05 -04:00
Next time the culture wants to go negative...we'll be ready.
This commit is contained in:
parent
5df19a9fb2
commit
525a26e972
@ -45,7 +45,10 @@ class PolicyManager {
|
||||
if(!branchCompletion) {
|
||||
if (freePolicies > 0) freePolicies--
|
||||
else {
|
||||
storedCulture -= getCultureNeededForNextPolicy()
|
||||
val cultureNeededForNextPolicy = getCultureNeededForNextPolicy()
|
||||
if(cultureNeededForNextPolicy > storedCulture)
|
||||
throw Exception("How is this possible??????")
|
||||
storedCulture -= cultureNeededForNextPolicy
|
||||
numberOfAdoptedPolicies++
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user