AI will not constantly bug you about research agreements

This commit is contained in:
Yair Morgenstern 2020-03-30 23:25:35 +03:00
parent b212f2bfd0
commit 93e4888191

View file

@ -69,7 +69,7 @@ class TradePopup(worldScreen: WorldScreen): Popup(worldScreen){
val diplomacyManager = requestingCiv.getDiplomacyManager(viewingCiv)
if(trade.ourOffers.all { it.type==TradeType.Luxury_Resource } && trade.theirOffers.all { it.type==TradeType.Luxury_Resource })
diplomacyManager.setFlag(DiplomacyFlags.DeclinedLuxExchange,20) // offer again in 20 turns
if(trade.ourOffers.any { it.type==TradeType.Agreement && it.name==Constants.researchAgreement })
if(trade.ourOffers.any { it.name==Constants.researchAgreement })
diplomacyManager.setFlag(DiplomacyFlags.DeclinedResearchAgreement,20) // offer again in 20 turns
if(trade.ourOffers.any{ it.type==TradeType.Treaty && it.name== Constants.peaceTreaty })