mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Merge pull request #387 from ninjatao/chinese_unique
Chinese unique ability.
This commit is contained in:
commit
11066b84e6
@ -19,6 +19,7 @@
|
||||
name:"China",
|
||||
mainColor:[9, 112, 84],
|
||||
secondaryColor:[255,255,255],
|
||||
unique:"Great general provides double combat bonus, and spawns 50% faster"
|
||||
cities:["Beijing","Shanghai","Guangzhou","Nanjing","Xian","Chengdu","Hangzhou","Tianjin","Macau","Shandong",
|
||||
"Kaifeng","Ningbo","Baoding","Yangzhou","Harbin","Chongqing","Luoyang","Kunming","Taipei","Shenyang",
|
||||
"Taiyuan","Tainan","Dalian","Lijiang","Wuxi","Suzhou","Maoming","Shaoguan","Yangjiang","Heyuan"]
|
||||
|
@ -3446,6 +3446,9 @@
|
||||
Spanish:"+2 de movimiento a las unidades navales"
|
||||
Simplified_Chinese:"所有有海军+2行动力"
|
||||
}
|
||||
"Great general provides double combat bonus, and spawns 50% faster":{
|
||||
Simplified_Chinese:"大军事家提供双倍战斗加成,出生速率+50%"
|
||||
}
|
||||
|
||||
"France":{
|
||||
Italian:"Francia"
|
||||
|
@ -96,6 +96,10 @@ class Battle(val gameInfo:GameInfo) {
|
||||
var amountToAdd = amount
|
||||
if(thisCombatant.getCivilization().policies.isAdopted("Military Tradition")) amountToAdd = (amountToAdd * 1.5f).toInt()
|
||||
thisCombatant.unit.promotions.XP += amountToAdd
|
||||
|
||||
if(thisCombatant.getCivilization().getNation().unique
|
||||
== "Great general provides double combat bonus, and spawns 50% faster")
|
||||
amountToAdd = (amountToAdd * 1.5f).toInt()
|
||||
thisCombatant.getCivilization().greatPeople.greatGeneralPoints += amountToAdd
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,10 @@ class BattleDamage{
|
||||
.filter {it.civilianUnit?.civInfo == combatant.unit.civInfo}
|
||||
.map {it.civilianUnit}
|
||||
if (nearbyCivUnits.any { it!!.hasUnique("Bonus for land units in 2 radius 15%") }) {
|
||||
modifiers["Great general"]=0.15f
|
||||
modifiers["Great general"]= when {
|
||||
combatant.unit.civInfo.getNation().unique == "Great general provides double combat bonus, and spawns 50% faster" -> 0.3f
|
||||
else -> 0.15f
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user