Added Persian civilization
This commit is contained in:
parent
9665c59782
commit
3084a5bc33
13 changed files with 606 additions and 569 deletions
BIN
android/Images/BuildingIcons/Satrap's Court.png
Normal file
BIN
android/Images/BuildingIcons/Satrap's Court.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
android/Images/NationIcons/Persia.png
Normal file
BIN
android/Images/NationIcons/Persia.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 KiB |
BIN
android/Images/UnitIcons/Immortal.png
Normal file
BIN
android/Images/UnitIcons/Immortal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
File diff suppressed because it is too large
Load diff
Binary file not shown.
Before Width: | Height: | Size: 1,022 KiB After Width: | Height: | Size: 1 MiB |
|
@ -500,7 +500,6 @@
|
|||
requiredBuilding:"Market",
|
||||
requiredTech:"Banking"
|
||||
},
|
||||
/*
|
||||
{
|
||||
name:"Satrap's Court",
|
||||
replaces:"Bank",
|
||||
|
@ -510,11 +509,9 @@
|
|||
happiness:2,
|
||||
hurryCostModifier:15,
|
||||
percentStatBonus:{gold:25},
|
||||
uniques:["+1 Gold per incoming trade route (and +1 Gold for the foreign owner)"],
|
||||
requiredBuilding:"Market",
|
||||
requiredTech:"Banking"
|
||||
},
|
||||
*/
|
||||
{
|
||||
name:"Hanse",
|
||||
replaces:"Bank",
|
||||
|
|
|
@ -579,6 +579,45 @@
|
|||
"Chondote","Canajoharie","Nedrow","Oneida Lake","Kanonwalohale","Green Bay","Southwold","Mohawk Valley",
|
||||
"Schoharie","Bay of Quinte","Kanawale","Kanatsiokareke","Tyendinaga","Hahta"]
|
||||
},
|
||||
{
|
||||
name:"Persia",
|
||||
leaderName:"Darius I",
|
||||
adjective:["Persian"],
|
||||
preferredVictoryType:"Scientific",
|
||||
|
||||
startIntroPart1: "The blessings of heaven be upon you, beloved king Darius of Persia! You lead a strong and wise people. In the morning of the world, the great Persian leader Cyrus revolted against the mighty Median empire and by 550 BC, the Medes were no more. Through cunning diplomacy and military prowess, great Cyrus conquered wealthy Lydia and powerful Babylon. His son conquering proud Egypt some years later. Over time, Persian might expanded into far away Macedonia, at the very door of the upstart Greek city-states. Long would Persia prosper until the upstart villain Alexander of Macedon, destroyed the great empire in one shocking campaign."
|
||||
startIntroPart2: "Darius, your people look to you to once again bring back the days of power and glory for Persia! The empire of your ancestors must emerge again, to triumph over its foes and to bring peace and order to the world! O king, will you answer the call? Can you build a civilization that will stand the test of time?"
|
||||
|
||||
declaringWar:"Your continue existence is an embarrassment to all leaders everywhere! You must be destroyed!"
|
||||
attacked:"Curse you! You are beneath me, son of a donkey driver! I will crush you!"
|
||||
defeated:"You mongrel! Cursed be you! The world will long lament your heinous crime!"
|
||||
introduction:"Peace be on you! I am Darius, the great and outstanding king of kings of great Persia... but I suppose you knew that."
|
||||
|
||||
neutralHello:"Good day to you!"
|
||||
neutralLetsHearIt:["Go on.","You said?"]
|
||||
neutralNo:["You are not serious!","Not good enough."]
|
||||
neutralYes:["Good!","Certainly.","Agreed!"]
|
||||
|
||||
hateHello:"Ahh... you..."
|
||||
hateLetsHearIt:["I'm listening.","Go on!"]
|
||||
hateNo:["We say... no!","Of course not!"]
|
||||
hateYes:["Alright!","Agreed."]
|
||||
|
||||
afterPeace:"It appears we should call it a tie..."
|
||||
tradeRequest:"In my endless magnanimity, I am making you this offer. You agree, of course?"
|
||||
|
||||
outerColor:[153,5,3],
|
||||
innerColor:[244,232,54],
|
||||
uniqueName:"Achaemenid Legacy"
|
||||
unique:"Golden Ages last 50% longer. During a Golden Age, units receive +1 Movement and +10% Strength",
|
||||
cities:["Persepolis","Parsagadae","Susa","Ecbatana","Tarsus","Gordium","Bactra","Sardis","Ergili","Dariushkabir",
|
||||
"Ghulaman","Zohak","Istakhr","Jinjan","Borazjan","Herat","Dakyanus","Bampur","Turengtepe","Rey","Shiraz",
|
||||
"Thuspa","Hasanlu","Gabae","Merv","Behistun","Kandahar","Altintepe","Bunyan","Charsadda","Uratyube",
|
||||
"Dura Europos","Aleppo","Qatna","Kabul","Capisa","Kyreskhata","Marakanda","Peshawar","Van","Pteira","Arshada",
|
||||
"Artakaona","Aspabota","Autiyara","Bagastana","Baxtri","Darmasa","Daphnai","Drapsaka","Eion","Gandutava",
|
||||
"Gaugamela","Harmozeia","Ekatompylos","Izata","Kampada","Kapisa","Karmana","Kounaxa","Kuganaka","Nautaka",
|
||||
"Paishiyauvada","Patigrbana","Phrada"]
|
||||
},
|
||||
|
||||
/*
|
||||
{
|
||||
|
@ -810,45 +849,6 @@
|
|||
"Huaras","Riobamba","Caxamalca","Sausa","Tambo Colorado","Huaca","Tumbes","Chan Chan","Sipan","Pachacamac",
|
||||
"Llactapata","Pisac","Kuelap","Pajaten","Chucuito","Choquequirao"]
|
||||
}
|
||||
{
|
||||
name:"Persian",
|
||||
leaderName:"Darius I",
|
||||
adjective:["Persian"],
|
||||
preferredVictoryType:"Scientific",
|
||||
|
||||
startIntroPart1: "The blessings of heaven be upon you, beloved king Darius of Persia! You lead a strong and wise people. In the morning of the world, the great Persian leader Cyrus revolted against the mighty Median empire and by 550 BC, the Medes were no more. Through cunning diplomacy and military prowess, great Cyrus conquered wealthy Lydia and powerful Babylon. His son conquering proud Egypt some years later. Over time, Persian might expanded into far away Macedonia, at the very door of the upstart Greek city-states. Long would Persia prosper until the upstart villain Alexander of Macedon, destroyed the great empire in one shocking campaign."
|
||||
startIntroPart2: "Darius, your people look to you to once again bring back the days of power and glory for Persia! The empire of your ancestors must emerge again, to triumph over its foes and to bring peace and order to the world! O king, will you answer the call? Can you build a civilization that will stand the test of time?"
|
||||
|
||||
declaringWar:"Your continue existence is an embarrassment to all leaders everywhere! You must be destroyed!"
|
||||
attacked:"Curse you! You are beneath me, son of a donkey driver! I will crush you!"
|
||||
defeated:"You mongrel! Cursed be you! The world will long lament your heinous crime!"
|
||||
introduction:"Peace be on you! I am Darius, the great and outstanding king of kings of great Persia... but I suppose you knew that."
|
||||
|
||||
neutralHello:"Good day to you!"
|
||||
neutralLetsHearIt:["Go on.","You said?"]
|
||||
neutralNo:["You are not serious!","Not good enough."]
|
||||
neutralYes:["Good!","Certainly.","Agreed!"]
|
||||
|
||||
hateHello:"Ahh... you..."
|
||||
hateLetsHearIt:["I'm listening.","Go on!"]
|
||||
hateNo:["We say... no!","Of course not!"]
|
||||
hateYes:["Alright!","Agreed."]
|
||||
|
||||
afterPeace:"It appears we should call it a tie..."
|
||||
tradeRequest:"In my endless magnanimity, I am making you this offer. You agree, of course?"
|
||||
|
||||
outerColor:[255,0,0],
|
||||
innerColor:[255,255,0],
|
||||
uniqueName:"Achaemenid Legacy"
|
||||
unique:"Golden Ages last 50% longer. During a Golden Age, units receive +1 Movement and +10% Strenght",
|
||||
cities:["Persepolis","Parsagadae","Susa","Ecbatana","Tarsus","Gordium","Bactra","Sardis","Ergili","Dariushkabir",
|
||||
"Ghulaman","Zohak","Istakhr","Jinjan","Borazjan","Herat","Dakyanus","Bampur","Turengtepe","Rey","Shiraz",
|
||||
"Thuspa","Hasanlu","Gabae","Merv","Behistun","Kandahar","Altintepe","Bunyan","Charsadda","Uratyube",
|
||||
"Dura Europos","Aleppo","Qatna","Kabul","Capisa","Kyreskhata","Marakanda","Peshawar","Van","Pteira","Arshada",
|
||||
"Artakaona","Aspabota","Autiyara","Bagastana","Baxtri","Darmasa","Daphnai","Drapsaka","Eion","Gandutava",
|
||||
"Gaugamela","Harmozeia","Ekatompylos","Izata","Kampada","Kapisa","Karmana","Kounaxa","Kuganaka","Nautaka",
|
||||
"Paishiyauvada","Patigrbana","Phrada"]
|
||||
},
|
||||
{
|
||||
name:"Polynesia",
|
||||
leaderName:"Kamehameha I",
|
||||
|
|
|
@ -1233,6 +1233,22 @@
|
|||
Portuguese:"Mova-se por florestas e selvas em território amigo como se fossem estradas. Estas terras podem ser usadas para estabelecer rotas de comércio após pesquisar a roda."
|
||||
French:"Les Forêt et les Jungles en territoire alliés ont les mêmes attributs que les routes. A la découverte de la Roue, elles peuvent établir des routes commerciales."
|
||||
}
|
||||
|
||||
|
||||
"Persia":{
|
||||
Italian:"Persia"
|
||||
French:"Perse"
|
||||
Portuguese:"Pérsia"
|
||||
}
|
||||
|
||||
"Darius I":{
|
||||
}
|
||||
|
||||
"Golden Ages last 50% longer. During a Golden Age, units receive +1 Movement and a +10% Combat Strenght bonus.":{
|
||||
Italian:"+50% durata delle Età dell'Oro, durante le quali le unità ricevono +1 Movimento e +10% Forza."
|
||||
Portuguese:"Idades douradas duram 50% mais, unidades recebem 1 movimento a mais e um bonus de +10% em força de combate."
|
||||
French:"Les Ages d'Or durent 50% plus longtemps. Durant les Ages d'Or, les unités gagnent +1 mouvement et +10% de force de Combat."
|
||||
}
|
||||
|
||||
/*
|
||||
"Aztecs":{
|
||||
|
@ -1313,17 +1329,6 @@
|
|||
French:"Peut embarquer et bouger sur les océans dès le début. +1 Vision lorsque embarqué."
|
||||
}
|
||||
|
||||
"Persia":{
|
||||
Italian:"Persia"
|
||||
French:"Perse"
|
||||
Portuguese:"Pérsia"
|
||||
}
|
||||
|
||||
"Golden Ages last 50% longer. During a Golden Age, units receive +1 Movement and a +10% Combat Strenght bonus.":{
|
||||
Italian:"+50% durata delle Età dell'Oro, durante le quali le unità ricevono +1 Movimento e +10% Forza."
|
||||
Portuguese:"Idades douradas duram 50% mais, unidades recebem 1 movimento a mais e um bonus de +10% em força de combate."
|
||||
French:"Les Ages d'Or durent 50% plus longtemps. Durant les Ages d'Or, les unités gagnent +1 mouvement et +10% de force de Combat."
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -382,6 +382,12 @@
|
|||
French:"Hoplite"
|
||||
}
|
||||
|
||||
"Immortal":{ // Persian unique
|
||||
}
|
||||
|
||||
"+10 HP when healing":{
|
||||
}
|
||||
|
||||
////// Classical Era Units
|
||||
|
||||
"Composite Bowman":{
|
||||
|
|
|
@ -243,11 +243,10 @@
|
|||
hurryCostModifier:20,
|
||||
attackSound:"metalhit"
|
||||
},
|
||||
/*
|
||||
{
|
||||
name:"Immortal",
|
||||
replaces:"Spearman",
|
||||
uniqueTo:"Persian",
|
||||
uniqueTo:"Persia",
|
||||
unitType:"Melee",
|
||||
movement:2,
|
||||
strength:12,
|
||||
|
@ -255,12 +254,10 @@
|
|||
requiredTech:"Bronze Working",
|
||||
obsoleteTech:"Civil Service",
|
||||
upgradesTo: "Pikeman",
|
||||
uniques:["Bonus vs Mounted 50%","Heals at double rate"],
|
||||
uniques:["Bonus vs Mounted 50%","+10 HP when healing"],
|
||||
hurryCostModifier:20,
|
||||
attackSound:"metalhit"
|
||||
//Persian unique unit
|
||||
},
|
||||
*/
|
||||
|
||||
|
||||
/* Classical Era */
|
||||
|
|
|
@ -81,6 +81,9 @@ class BattleDamage{
|
|||
modifiers["Great General"] = greatGeneralModifier
|
||||
}
|
||||
|
||||
if(combatant.getCivInfo().nation.unique=="Golden Ages last 50% longer. During a Golden Age, units receive +1 Movement and +10% Strength")
|
||||
modifiers["Golden Age"] = 0.1f
|
||||
|
||||
}
|
||||
|
||||
if (combatant.getCivInfo().policies.isAdopted("Honor") && enemy.getCivInfo().isBarbarian())
|
||||
|
|
|
@ -27,6 +27,8 @@ class GoldenAgeManager{
|
|||
fun enterGoldenAge() {
|
||||
var turnsToGoldenAge = 10.0
|
||||
if (civInfo.containsBuildingUnique("Golden Age length increases +50%")) turnsToGoldenAge *= 1.5
|
||||
if(civInfo.nation.unique=="Golden Ages last 50% longer. During a Golden Age, units receive +1 Movement and +10% Strength")
|
||||
turnsToGoldenAge*=1.5
|
||||
if (civInfo.policies.isAdopted("Freedom Complete")) turnsToGoldenAge *= 1.5
|
||||
turnsToGoldenAge *= civInfo.gameInfo.gameParameters.gameSpeed.getModifier()
|
||||
turnsLeftForCurrentGoldenAge += turnsToGoldenAge.toInt()
|
||||
|
|
|
@ -82,18 +82,21 @@ class MapUnit {
|
|||
fun getMovementString(): String = DecimalFormat("0.#").format(currentMovement.toDouble()) + "/" + getMaxMovement()
|
||||
fun getTile(): TileInfo = currentTile
|
||||
fun getMaxMovement(): Int {
|
||||
if(isEmbarked()) return getEmbarkedMovement()
|
||||
if (isEmbarked()) return getEmbarkedMovement()
|
||||
|
||||
var movement = baseUnit.movement
|
||||
movement += getUniques().count{it=="+1 Movement"}
|
||||
movement += getUniques().count { it == "+1 Movement" }
|
||||
|
||||
if(type.isWaterUnit() && !type.isCivilian()
|
||||
if (type.isWaterUnit() && !type.isCivilian()
|
||||
&& civInfo.containsBuildingUnique("All military naval units receive +1 movement and +1 sight"))
|
||||
movement += 1
|
||||
|
||||
if(type.isWaterUnit() && civInfo.nation.unique=="+2 movement for all naval units")
|
||||
movement+=2
|
||||
|
||||
if (type.isWaterUnit() && civInfo.nation.unique == "+2 movement for all naval units")
|
||||
movement += 2
|
||||
|
||||
if(civInfo.nation.unique=="Golden Ages last 50% longer. During a Golden Age, units receive +1 Movement and +10% Strength")
|
||||
movement+=1
|
||||
|
||||
return movement
|
||||
}
|
||||
|
||||
|
@ -336,11 +339,14 @@ class MapUnit {
|
|||
tile.improvementInProgress = null
|
||||
}
|
||||
|
||||
private fun heal(){
|
||||
if(isEmbarked()) return // embarked units can't heal
|
||||
private fun heal() {
|
||||
if (isEmbarked()) return // embarked units can't heal
|
||||
var amountToHealBy = rankTileForHealing(getTile())
|
||||
if (amountToHealBy == 0) return
|
||||
|
||||
if (hasUnique("+10 HP when healing")) amountToHealBy += 10
|
||||
val adjacentUnits = currentTile.getTilesInDistance(1).flatMap { it.getUnits() }
|
||||
if(adjacentUnits.isNotEmpty())
|
||||
if (adjacentUnits.isNotEmpty())
|
||||
amountToHealBy += adjacentUnits.map { it.adjacentHealingBonus() }.max()!!
|
||||
healBy(amountToHealBy)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue