How is this calculated?
I'm asking because in my current game, Brazil has a 22% combat bonus from this. I have not take a single city all game, I declared war a total of two times in 250 turns. Its seems far too high.
// --------------------------------------------------------------------------------
int CvUnit::GetResistancePower(const CvUnit* pOtherUnit) const
{
int iResistance = 0;
if(MOD_BALANCE_CORE_MILITARY_RESISTANCE)
{
if (pOtherUnit->getOwner() == NO_PLAYER)
return 0;
if (pOtherUnit->isBarbarian() || isBarbarian())
return 0;
if (GET_PLAYER(pOtherUnit->getOwner()).isMinorCiv() || GET_PLAYER(getOwner()).isMinorCiv())
return 0;
if (plot()->getOwner() == pOtherUnit->getOwner())
return 0;
iResistance = GET_PLAYER(getOwner()).GetDominationResistance(pOtherUnit->getOwner());
//Not our territory?
if (plot()->getOwner() == NO_PLAYER)
iResistance /= 2;
}
return iResistance;
}
int CvPlayer::GetDominationResistance(PlayerTypes ePlayer)
{
if (ePlayer == NO_PLAYER)
return 0;
int iHandicap = 5;
if (GET_PLAYER(ePlayer).isHuman())
{
iHandicap = GC.getGame().getHandicapInfo().getAIDifficultyBonusBase();
}
int iMaxThreshold = GC.getWARMONGER_THREAT_CRITICAL_THRESHOLD() * 100;
iMaxThreshold /= max(1, iHandicap);
int iResistance = GetDiplomacyAI()->GetOtherPlayerWarmongerAmount(ePlayer);
iResistance *= 100;
iResistance /= max(1, iMaxThreshold);
return min((iHandicap * iHandicap), iResistance);
}
"WARMONGER_THREAT_CRITICAL_THRESHOLD" "160"
I can't exactly understand the code, but at some point the civ's opinion of me is taking an effect, yes? I can telll because I don't have the same penalty against all civs. Its letting civs such as Germany who really dislike warmongers get enormous bonuses when the other guy has barely done anything.
From my Aztec photojournal, Greece actually had a lower anti-warmonger fervor than Austria did. I fought Greece after taking all of Austria's cities, but we were friendly most of the game.
Ok, what does equal "anti warmonger fervor".Warmonger 'raw' value != warmonger diplo penalty. The raw score works the same for all players, but is affected by things like relative size and proximity. So weak neighbors get spooked more easily than same-size rivals. There is nothing 'AI unique' in the warmonger code anymore, so it's not an AI-variable thing.
Ok, what does equal "anti warmonger fervor".
Is it raw warmonger? Warmonger diplo penalty? Or something else?
Second question would be, why is it so high when I haven't taken a city (I've declared war twice in 200 turns).
Disclaimer: Not read that code. I wasn't really interested.It is raw warmonger.
A better question: how high do you think it should be?
G
Disclaimer: Not read that code. I wasn't really interested.
Thanks.In short:
The bonus is equal to the minimum between:
+ "Warmonger score"
+ "Difficulty level^2" against the Human, "25" against the AIs
If I have not taken a city yet, it should be between 0 and 5.A better question: how high do you think it should be?
G
That should be easy. Add a line saying that if the player has not captured any cities, then warmonger score is 0. There can be an issue when the player razes every captured city, making it easier for OCC, I guess.If I have not taken a city yet, it should be between 0 and 5.
If I have not taken a city yet, it should be between 0 and 5.
If the civ attacking you has not taken any cities, he isn't a warmonger yet. You shouldn't be receiving an anti-warmonger bonus.Before we start talking about
The thing is by the time you are capturing cities you have likely already killed a good amount of their forces with your powerful well equipped force.
The point is not just to measure what you have done, but what you could do. If your force looks like it can “end my civilization” and we are at war...than I have to fight for all I’ve got.
This is also part of the TALL balance right now. Tradition players get a defensive boost because of this mechanic. If I don’t get the boost until one of my few key cities is taken...I’m in big trouble
If the civ attacking you has not taken any cities, he isn't a warmonger yet. You shouldn't be receiving an anti-warmonger bonus.
I don't mean a city in this war, I mean never captured a city at all, period, all game long. I'm not a warmonger, my neighbor shouldn't get a 22% anti-warmonger bonus
No, in my current game it is giving a larger civ, who has fought far more wars than I, a huge bonus against me. My army is smaller than his, he declared war on me. He has a 22% bonus. I had another game where I declared war on Germany, pillaged one trade route, then he had an 11% bonus against me. It constantly gives enormous bonuses to AI in situations where you aren't a warmonger at all. I take a single, 2 population city that he settled the turn was declared and my penalty is up to 30%.If you have built an army capable of crushing my cities to the dirt and you declare war....I might think you are.
But that is flavor semantics, lets look at the balance of this mechanic. The goal was to delay domination players and give smaller civs some protection against the huge armies of larger civs. Is the mechanic doing that job in a reasonable way?
No, in my current game it is giving a larger civ, who has fought far more wars than I, a huge bonus against me. My army is smaller than his, he declared war on me. He has a 22% bonus.