mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 17:28:57 +07:00
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:
@ -386,6 +386,8 @@
|
||||
Italian:"Abbiamo notato la la tua nuova città vicino ai nostri confini. E questo avrà... ripercussioni sui nostri rapporti."
|
||||
}
|
||||
|
||||
"Your arrogant demands are in bad taste":{}
|
||||
|
||||
|
||||
////// City-States Types
|
||||
|
||||
|
@ -45,6 +45,7 @@ enum class DiplomaticModifiers{
|
||||
DenouncedOurAllies,
|
||||
RefusedToNotSettleCitiesNearUs,
|
||||
BetrayedPromiseToNotSettleCitiesNearUs,
|
||||
UnacceptableDemands,
|
||||
|
||||
YearsOfPeace,
|
||||
SharedEnemy,
|
||||
@ -248,6 +249,7 @@ class DiplomacyManager() {
|
||||
revertToZero(DiplomaticModifiers.BetrayedDeclarationOfFriendship,1/8f) // That's a bastardly thing to do
|
||||
revertToZero(DiplomaticModifiers.RefusedToNotSettleCitiesNearUs,1/4f)
|
||||
revertToZero(DiplomaticModifiers.BetrayedPromiseToNotSettleCitiesNearUs,1/8f) // That's a bastardly thing to do
|
||||
revertToZero(DiplomaticModifiers.UnacceptableDemands,1/4f)
|
||||
|
||||
if(!hasFlag(DiplomacyFlags.DeclarationOfFriendship))
|
||||
revertToZero(DiplomaticModifiers.DeclarationOfFriendship, 1/2f) //decreases slowly and will revert to full if it is declared later
|
||||
|
@ -258,6 +258,7 @@ class DiplomacyScreen:CameraStageBaseScreen() {
|
||||
BetrayedPromiseToNotSettleCitiesNearUs -> "You betrayed your promise to not settle cities near us"
|
||||
RefusedToNotSettleCitiesNearUs -> "You refused to stop settling cities near us"
|
||||
FulfilledPromiseToNotSettleCitiesNearUs -> "You fulfilled your promise to stop settling cities near us!"
|
||||
UnacceptableDemands -> "Your arrogant demands are in bad taste"
|
||||
}
|
||||
text = text.tr() + " "
|
||||
if (modifier.value > 0) text += "+"
|
||||
@ -280,7 +281,10 @@ class DiplomacyScreen:CameraStageBaseScreen() {
|
||||
setRightSideFlavorText(otherCiv,"Very well, we shall look for new lands to settle.","Excellent!")
|
||||
otherCiv.getDiplomacyManager(currentPlayerCiv).setFlag(DiplomacyFlags.WeAgreedNotToSettleNearThem,100)
|
||||
}
|
||||
else setRightSideFlavorText(otherCiv,"We shall do as we please.","Very well.")
|
||||
else {
|
||||
setRightSideFlavorText(otherCiv,"We shall do as we please.","Very well.")
|
||||
otherCiv.getDiplomacyManager(currentPlayerCiv).addModifier(UnacceptableDemands,-20f)
|
||||
}
|
||||
}
|
||||
demandsTable.add(dontSettleCitiesButton).row()
|
||||
demandsTable.add(TextButton("Close".tr(),skin).onClick { updateRightSide(otherCiv) })
|
||||
|
Reference in New Issue
Block a user