Added Alhambra #245

This commit is contained in:
Yair Morgenstern 2019-01-16 21:45:46 +02:00
parent 49ed7570f8
commit eeaca08f57
5 changed files with 20 additions and 0 deletions

View file

@ -151,7 +151,9 @@ All the following are from [the Noun Project](https://thenounproject.com) licenc
* [College](https://thenounproject.com/term/college/1203703/) By Vectors Market for National College
* [Chichen Itza](https://thenounproject.com/term/chichen-itza/668065/) By Hea Poh Lin
* [Christian Church](https://thenounproject.com/term/christian-church/1174183/) By Andrejs Kirma for Monastery
* [Castle](https://thenounproject.com/search/?q=castle&i=390189) By Mint Shirt
* [Cambodia](https://thenounproject.com/term/cambodia/1809152/) By Wichai Wi for Angkor Wat
* [Alhambra](https://thenounproject.com/search/?q=alhambra&i=403759) By parkjisun
* [Books](https://thenounproject.com/term/books/1140218/) By Abir Alward for Oxford University
* [Forge](https://thenounproject.com/term/forge/1044767/) By Monjin Friends
* [Anchor](https://thenounproject.com/term/anchor/1258518/) By Saeful Muslim for Harbor

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

@ -328,6 +328,16 @@
uniques:["Cost of acquiring new tiles reduced by 25%"],
requiredTech:"Chivalry"
},
{
name:"Alhambra",
culture:1,
greatPersonPoints:{culture:1},
isWonder:true,
providesFreeBuilding:"Castle",
percentStatBonus:{culture:20},
uniques:["All newly-trained melee, mounted, and armored units in this city receive the Drill I promotion"],
requiredTech:"Chivalry"
},
{
name:"Ironworks",
production:8,

View file

@ -4464,6 +4464,9 @@
Portuguese:"Castelo"
}
"Alhambra":{}
"All newly-trained melee, mounted, and armored units in this city receive the Drill I promotion":{}
"Angkor Wat":{
Italian:"Angkor Wat"
Russian:"Ангкор-Ват"

View file

@ -112,6 +112,11 @@ class BaseUnit : INamed, IConstruction, ICivilopedia {
unit.promotions.XP += construction.getBuiltBuildings().sumBy { it.xpForNewUnits }
if(construction.cityInfo.civInfo.policies.isAdopted("Total War"))
unit.promotions.XP += 15
if(unit.type in listOf(UnitType.Melee,UnitType.Mounted,UnitType.Armor)
&& construction.cityInfo.getBuildingUniques()
.contains("All newly-trained melee, mounted, and armored units in this city receive the Drill I promotion"))
unit.promotions.addPromotion("Drill I")
}
fun getUpgradeUnit(civInfo: CivilizationInfo):BaseUnit{