Added diplomatic reprecissions for demands that the other civs is unwilling to fulfil
Removed WeAgreedNotToSettleNearThem flag - was reverse copy of AgreedNotToSettleNearUs
This commit is contained in:
parent
d5a0894f75
commit
96ee91cb08
3 changed files with 4 additions and 4 deletions
|
@ -84,8 +84,9 @@ class SpecificUnitAutomation{
|
||||||
val tilesNearCities = unit.civInfo.gameInfo.civilizations.flatMap { it.cities }
|
val tilesNearCities = unit.civInfo.gameInfo.civilizations.flatMap { it.cities }
|
||||||
.flatMap {
|
.flatMap {
|
||||||
val distanceAwayFromCity =
|
val distanceAwayFromCity =
|
||||||
if (it.civInfo.knows(unit.civInfo.civName)
|
if (unit.civInfo.knows(it.civInfo.civName)
|
||||||
&& it.civInfo.getDiplomacyManager(unit.civInfo).hasFlag(DiplomacyFlags.WeAgreedNotToSettleNearThem))
|
// If the CITY OWNER knows that the UNIT OWNER agreed not to settle near them
|
||||||
|
&& it.civInfo.getDiplomacyManager(unit.civInfo).hasFlag(DiplomacyFlags.AgreedToNotSettleNearUs))
|
||||||
6
|
6
|
||||||
else 3
|
else 3
|
||||||
it.getCenterTile().getTilesInDistance(distanceAwayFromCity)
|
it.getCenterTile().getTilesInDistance(distanceAwayFromCity)
|
||||||
|
|
|
@ -31,7 +31,6 @@ enum class DiplomacyFlags{
|
||||||
BorderConflict,
|
BorderConflict,
|
||||||
SettledCitiesNearUs,
|
SettledCitiesNearUs,
|
||||||
AgreedToNotSettleNearUs,
|
AgreedToNotSettleNearUs,
|
||||||
WeAgreedNotToSettleNearThem,
|
|
||||||
IgnoreThemSettlingNearUs
|
IgnoreThemSettlingNearUs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -279,7 +279,7 @@ class DiplomacyScreen:CameraStageBaseScreen() {
|
||||||
val threatLevel = Automation().threatAssessment(otherCiv,currentPlayerCiv)
|
val threatLevel = Automation().threatAssessment(otherCiv,currentPlayerCiv)
|
||||||
if(threatLevel>ThreatLevel.Medium){
|
if(threatLevel>ThreatLevel.Medium){
|
||||||
setRightSideFlavorText(otherCiv,"Very well, we shall look for new lands to settle.","Excellent!")
|
setRightSideFlavorText(otherCiv,"Very well, we shall look for new lands to settle.","Excellent!")
|
||||||
otherCiv.getDiplomacyManager(currentPlayerCiv).setFlag(DiplomacyFlags.WeAgreedNotToSettleNearThem,100)
|
currentPlayerCiv.getDiplomacyManager(otherCiv).setFlag(DiplomacyFlags.AgreedToNotSettleNearUs,100)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
setRightSideFlavorText(otherCiv,"We shall do as we please.","Very well.")
|
setRightSideFlavorText(otherCiv,"We shall do as we please.","Very well.")
|
||||||
|
|
Loading…
Reference in a new issue