mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 15:01:09 -04:00
Implemented Alexander's unique - #563
This commit is contained in:
parent
9a3ea36e2d
commit
ab26f66e1a
@ -66,10 +66,8 @@
|
|||||||
|
|
||||||
outerColor:[181, 232, 232],
|
outerColor:[181, 232, 232],
|
||||||
innerColor:[68,142,249],
|
innerColor:[68,142,249],
|
||||||
/*
|
|
||||||
uniqueName:"Hellenic League",
|
uniqueName:"Hellenic League",
|
||||||
unique:"City-State Influence degrades at half and recovers at twice the normal rate",
|
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",
|
cities:["Athens","Sparta","Corinth","Argos","Knossos","Mycenae","Pharsalos","Ephesus","Halicarnassus","Rhodes",
|
||||||
"Eretria","Pergamon","Miletos","Megara","Phocaea","Sicyon","Tiryns","Samos","Mytilene","Chios",
|
"Eretria","Pergamon","Miletos","Megara","Phocaea","Sicyon","Tiryns","Samos","Mytilene","Chios",
|
||||||
"Paros","Ellis","Syracuse","Herakleia","Gortyn","Chalkis","Pylos","Pella","Naxos"]
|
"Paros","Ellis","Syracuse","Herakleia","Gortyn","Chalkis","Pylos","Pella","Naxos"]
|
||||||
|
@ -748,7 +748,10 @@
|
|||||||
"Alexander":{
|
"Alexander":{
|
||||||
Italian:"Alessandro"
|
Italian:"Alessandro"
|
||||||
French:"Alexandre le Grand"
|
French:"Alexandre le Grand"
|
||||||
}
|
},
|
||||||
|
|
||||||
|
"City-State Influence degrades at half and recovers at twice the normal rate": {
|
||||||
|
},
|
||||||
|
|
||||||
"China":{
|
"China":{
|
||||||
Italian:"Cina"
|
Italian:"Cina"
|
||||||
|
@ -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) {
|
if (influence > 1) {
|
||||||
influence -= 1
|
if(hasCityStateInfluenceBonus) influence -= 0.5f
|
||||||
|
else influence -= 1
|
||||||
} else if (influence < 1) {
|
} else if (influence < 1) {
|
||||||
influence += 1
|
if(hasCityStateInfluenceBonus) influence += 2
|
||||||
|
else influence += 1
|
||||||
} else influence = 0f
|
} else influence = 0f
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user