LowtherCastle
Deity
- Joined
- May 18, 2005
- Messages
- 23,750
But it's the value of the imbalance of our trade divided by # of turns, no?
Well, that is embarrassing.I thought that way for years, but somebody corrected me.
I'll try to find it.
But it's the value of the imbalance of our trade divided by # of turns, no?
The worst enemy code:
Code:int CvPlayerAI::AI_getRivalTradeAttitude(PlayerTypes ePlayer) const { // XXX human only? return -(range(((GET_TEAM(getTeam()).AI_getEnemyPeacetimeGrantValue(GET_PLAYER(ePlayer).getTeam()) + (GET_TEAM(getTeam()).AI_getEnemyPeacetimeTradeValue(GET_PLAYER(ePlayer).getTeam()) / 3)) / ((GET_TEAM(getTeam()).AI_getHasMetCounter(GET_PLAYER(ePlayer).getTeam()) + 1) * 10)), 0, 4)); }
AI_getHasMetCounter returns the turns the civs are known each other, this is why you often see -4 for traded w/ worst enemies upon meeting.
Passing time (turns) decays worst-enemy value.
Things like gifting units, or opening borders, triggers trade with worst enemies. But it is insignificant compared to lopsided tech trades.
Buying techs with gold will never trigger worst enemy as long as you don't overpay. Zero value (i.e. neutral) trades don't do anything for trade with the worst enemy.
In my current game, I had a tech-trade in which I got a little money (less than the AI had) to make the deal equal. I still got -1 trading with worst enemy.
From all of my experience, trades only needing to be equal to not cause the malus is definately wrong, I remember often to have gotten -1, -2, or even -3 on relations in big trades, even if gold equalled them out.
Yes. Correct. Next turn we meet.IIRC, we are 1 tile short of meeting White this turn (141)? Did u move the galley?
The problem is, our maps are probably worth way more and that will get us +4 and possible -4 elsewhereSell Karl our maps for 50g?
So we should have gifted 10g to get plusmods and OBs. Maybe not too late to get plusmods at least with Sal. Medit for 20g?Well, that is embarrassing.
It seems it IS about lopsided trades, and my initial instincts were correct?
https://forums.civfanatics.com/threads/you-traded-with-our-worst-enemy.538067/#post-13543739
That means I've been spouting nonsense the last 2 years saying Worst Enemy -diplo wasn't about lopsided trades. >_<
Then again...
Maybe I should just do some testing on this.
No, I think for every +1 you get, you also get -1So we should have gifted 10g to get plusmods and OBs. Maybe not too late to get plusmods at least with Sal. Medit for 20g?
I'd say wait for us to meet white before making any moves with new AI.So we should have gifted 10g to get plusmods and OBs. Maybe not too late to get plusmods at least with Sal. Medit for 20g?
The point is we grab OBs, but the diplo fades rapidly. Because Medit is so cheap we can do this Karl doesn’t need any cheap techs. It wiukd be nice to have OBs to drop off a GS.No, I think for every +1 you get, you also get -1
interesting. I should learn more about this fade.Ya, any -4 worst enemy hit would quickly fade