mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 17:28:57 +07:00
City-states no longer accumulate points towards Great Generals
This commit is contained in:
@ -242,14 +242,16 @@ object Battle {
|
||||
thisCombatant.unit.promotions.XP += XPGained
|
||||
|
||||
|
||||
var greatGeneralPointsModifier = 1f
|
||||
if(thisCombatant.getCivInfo().nation.unique == UniqueAbility.ART_OF_WAR)
|
||||
greatGeneralPointsModifier += 0.5f
|
||||
if(thisCombatant.unit.hasUnique("Combat very likely to create Great Generals"))
|
||||
greatGeneralPointsModifier += 1f
|
||||
if(thisCombatant.getCivInfo().isMajorCiv()) {
|
||||
var greatGeneralPointsModifier = 1f
|
||||
if (thisCombatant.getCivInfo().nation.unique == UniqueAbility.ART_OF_WAR)
|
||||
greatGeneralPointsModifier += 0.5f
|
||||
if (thisCombatant.unit.hasUnique("Combat very likely to create Great Generals"))
|
||||
greatGeneralPointsModifier += 1f
|
||||
|
||||
val greatGeneralPointsGained = (XPGained * greatGeneralPointsModifier).toInt()
|
||||
thisCombatant.getCivInfo().greatPeople.greatGeneralPoints += greatGeneralPointsGained
|
||||
val greatGeneralPointsGained = (XPGained * greatGeneralPointsModifier).toInt()
|
||||
thisCombatant.getCivInfo().greatPeople.greatGeneralPoints += greatGeneralPointsGained
|
||||
}
|
||||
}
|
||||
|
||||
private fun conquerCity(city: CityInfo, attacker: ICombatant) {
|
||||
|
Reference in New Issue
Block a user