Proper great general points (#5329)

This commit is contained in:
SimonCeder 2021-09-27 12:38:42 +02:00 committed by GitHub
parent 2e72fd52c8
commit e0e701058d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -395,7 +395,7 @@ object Battle {
thisCombatant.unit.promotions.XP += xpGained
if (thisCombatant.getCivInfo().isMajorCiv()) {
if (thisCombatant.getCivInfo().isMajorCiv() && !otherCombatant.getCivInfo().isBarbarian()) { // Can't get great generals from Barbarians
var greatGeneralPointsModifier = 1f
for (unique in thisCombatant.getMatchingUniques("[] is earned []% faster")) {
val unitName = unique.params[0]

View File

@ -6,7 +6,7 @@ import com.unciv.models.stats.Stats
class GreatPersonManager {
var pointsForNextGreatPerson = 100
var pointsForNextGreatGeneral = 30
var pointsForNextGreatGeneral = 200
var greatPersonPointsCounter = Counter<String>()
var greatGeneralPoints = 0