mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 13:27:22 -04:00
Proper great general points (#5329)
This commit is contained in:
parent
2e72fd52c8
commit
e0e701058d
@ -395,7 +395,7 @@ object Battle {
|
|||||||
thisCombatant.unit.promotions.XP += xpGained
|
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
|
var greatGeneralPointsModifier = 1f
|
||||||
for (unique in thisCombatant.getMatchingUniques("[] is earned []% faster")) {
|
for (unique in thisCombatant.getMatchingUniques("[] is earned []% faster")) {
|
||||||
val unitName = unique.params[0]
|
val unitName = unique.params[0]
|
||||||
|
@ -6,7 +6,7 @@ import com.unciv.models.stats.Stats
|
|||||||
|
|
||||||
class GreatPersonManager {
|
class GreatPersonManager {
|
||||||
var pointsForNextGreatPerson = 100
|
var pointsForNextGreatPerson = 100
|
||||||
var pointsForNextGreatGeneral = 30
|
var pointsForNextGreatGeneral = 200
|
||||||
|
|
||||||
var greatPersonPointsCounter = Counter<String>()
|
var greatPersonPointsCounter = Counter<String>()
|
||||||
var greatGeneralPoints = 0
|
var greatGeneralPoints = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user