Fix trade resources check.
This commit is contained in:
parent
2def82c4a6
commit
c4e4f3d2a3
1 changed files with 0 additions and 5 deletions
|
@ -170,11 +170,6 @@ class DiplomacyManager() {
|
|||
if(offer.type== TradeType.Strategic_Resource || offer.type== TradeType.Luxury_Resource)
|
||||
counter.add(GameBasics.TileResources[offer.name]!!,offer.amount,"Trade")
|
||||
}
|
||||
for(tradeRequest in otherCiv().tradeRequests.filter { it.requestingCiv==civInfo.civName }){
|
||||
for(offer in tradeRequest.trade.theirOffers) // "theirOffers" in the other civ's trade request, is actually out civ's offers
|
||||
if(offer.type== TradeType.Strategic_Resource || offer.type== TradeType.Luxury_Resource)
|
||||
counter.add(GameBasics.TileResources[offer.name]!!,-offer.amount,"Trade")
|
||||
}
|
||||
return counter
|
||||
}
|
||||
//endregion
|
||||
|
|
Loading…
Reference in a new issue