Added unique ability for Egypt and France

This commit is contained in:
Yair Morgenstern 2019-01-07 18:44:42 +02:00
parent 911bd6fc67
commit b8aa4932a0
3 changed files with 20 additions and 6 deletions

View file

@ -29,6 +29,7 @@
name:"Egypt",
mainColor:[ 231, 213, 0],
secondaryColor:[98,10,210],
unique:"+20% production towards Wonder construction"
cities:["Thebes","Memphis","Heliopolis","Elephantine","Alexandria","Pi-Ramesses","Giza","Byblos","Akhetaten","Hieraconpolis",
"Abydos","Asyut","Avaris","Lisht","Buto","Edfu","Pithom","Busiris","Kahun","Athribis",
"Mendes","Elashmunein","Tanis","Bubastis","Oryx","Sebennytus","Akhmin","Karnak","Luxor","El Kab"]
@ -46,6 +47,7 @@
name:"France",
mainColor:[ 38, 98, 255],
secondaryColor:[239,236,148],
unique:"+2 Culture per turn from Cities before discovering Steam Power"
cities:["Paris","Orleans","Lyon","Troyes","Tours","Marseille","Chartres","Avignon","Rouen","Grenoble",
"Dijon","Amiens","Cherbourg","Poitiers","Toulouse","Bayonne","Strasbourg","Brest","Bordeaux","Rennes",
"Nice","Saint Etienne","Nantes","Reims","Le Mans","Montpellier","Limoges","Nancy","Lille","Caen"]

View file

@ -3498,6 +3498,11 @@
Simplified_Chinese:"中华"
Portuguese:"China"
}
"Great general provides double combat bonus, and spawns 50% faster":{
Romanian:"Marele general oferă bonus de luptă dublu și se crează cu 50% mai repede"
Simplified_Chinese:"大军事家提供双倍战斗加成,出生速率+50%"
}
"Egypt":{
Italian:"Egitto"
Russian:"Египет"
@ -3507,6 +3512,8 @@
Simplified_Chinese:"埃及"
Portuguese:"Egito"
}
"+20% production towards Wonder construction":{}
"England":{
Italian:"Inghilterra"
Russian:"Англия"
@ -3521,10 +3528,6 @@
Spanish:"+2 de movimiento a las unidades navales"
Simplified_Chinese:"所有有海军+2行动力"
}
"Great general provides double combat bonus, and spawns 50% faster":{
Romanian:"Marele general oferă bonus de luptă dublu și se crează cu 50% mai repede"
Simplified_Chinese:"大军事家提供双倍战斗加成,出生速率+50%"
}
"France":{
Italian:"Francia"
@ -3535,6 +3538,7 @@
Simplified_Chinese:"法兰西"
Portuguese:"França"
}
"+2 Culture per turn from cities before discovering Steam Power":{}
"Russia":{
Romanian:"Rusia"

View file

@ -108,12 +108,20 @@ class CityStats {
val stats = Stats()
val civUnique = cityInfo.civInfo.getNation().unique
val currentConstruction = cityInfo.cityConstructions.getCurrentConstruction()
if(civUnique=="+25% Production towards any buildings that already exist in the Capital"
&& cityInfo.cityConstructions.getCurrentConstruction() is Building
&& currentConstruction is Building
&& cityInfo.civInfo.getCapital().cityConstructions.builtBuildings
.contains(cityInfo.cityConstructions.currentConstruction))
.contains(currentConstruction.name))
stats.production+=25f
if(civUnique=="+20% production towards Wonder construction"
&& currentConstruction is Building && currentConstruction.isWonder)
stats.production+=20
if(civUnique == "+2 Culture per turn from cities before discovering Steam Power")
stats.culture += 2
return stats
}