mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-20 04:38:18 +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 (freePolicies > 0) freePolicies--
|
||||
else {
|
||||
storedCulture -= getCultureNeededForNextPolicy()
|
||||
val cultureNeededForNextPolicy = getCultureNeededForNextPolicy()
|
||||
if(cultureNeededForNextPolicy > storedCulture)
|
||||
throw Exception("How is this possible??????")
|
||||
storedCulture -= cultureNeededForNextPolicy
|
||||
numberOfAdoptedPolicies++
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user