mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-20 12:48:56 +07:00
Next time the culture wants to go negative...we'll be ready.
This commit is contained in:
@ -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++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user