mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -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(!branchCompletion) {
|
||||||
if (freePolicies > 0) freePolicies--
|
if (freePolicies > 0) freePolicies--
|
||||||
else {
|
else {
|
||||||
storedCulture -= getCultureNeededForNextPolicy()
|
val cultureNeededForNextPolicy = getCultureNeededForNextPolicy()
|
||||||
|
if(cultureNeededForNextPolicy > storedCulture)
|
||||||
|
throw Exception("How is this possible??????")
|
||||||
|
storedCulture -= cultureNeededForNextPolicy
|
||||||
numberOfAdoptedPolicies++
|
numberOfAdoptedPolicies++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user