Implemented Alexander's unique - #563

This commit is contained in:
Yair Morgenstern
2019-09-01 15:26:27 +03:00
parent 9a3ea36e2d
commit ab26f66e1a
3 changed files with 12 additions and 6 deletions

View File

@ -66,10 +66,8 @@
outerColor:[181, 232, 232],
innerColor:[68,142,249],
/*
uniqueName:"Hellenic League",
unique:"City-State Influence degrades at half and recovers at twice the normal rate",
*/
cities:["Athens","Sparta","Corinth","Argos","Knossos","Mycenae","Pharsalos","Ephesus","Halicarnassus","Rhodes",
"Eretria","Pergamon","Miletos","Megara","Phocaea","Sicyon","Tiryns","Samos","Mytilene","Chios",
"Paros","Ellis","Syracuse","Herakleia","Gortyn","Chalkis","Pylos","Pella","Naxos"]

View File

@ -361,7 +361,7 @@
"Your so-called 'friendship' is worth nothing.":{ // When we have a decleration of friendship to someone and we declare war on them
Italian:"La tua cosiddetta 'amicizia' non vale nulla!"
Italian:"La tua cosiddetta 'amicizia' non vale nulla!"
Portuguese:"Sua chamada 'amizade' não vale nada."
French:"Votre soi-disant 'amitié' ne vaut rien."
}
@ -748,7 +748,10 @@
"Alexander":{
Italian:"Alessandro"
French:"Alexandre le Grand"
}
},
"City-State Influence degrades at half and recovers at twice the normal rate": {
},
"China":{
Italian:"Cina"

View File

@ -279,10 +279,15 @@ class DiplomacyManager() {
}
}
// City-state influence
val hasCityStateInfluenceBonus =
civInfo.nation.unique=="City-State Influence degrades at half and recovers at twice the normal rate"
if (influence > 1) {
influence -= 1
if(hasCityStateInfluenceBonus) influence -= 0.5f
else influence -= 1
} else if (influence < 1) {
influence += 1
if(hasCityStateInfluenceBonus) influence += 2
else influence += 1
} else influence = 0f
}