Yay!! I just made my first succesful SDK gamecore mod
Some people might have noticed the Precision Bombing promotion for airplanes didnt really work.
Here it doesnt :
Code:
int CvUnit::bombardRate() const
{
return (m_pUnitInfo->getBombardRate() + getExtraBombardRate());
}
int CvUnit::airBombBaseRate() const
{
return m_pUnitInfo->getBombRate();
}
Well, now it does :
Code:
int CvUnit::bombardRate() const
{
return (m_pUnitInfo->getBombardRate() + getExtraBombardRate());
}
int CvUnit::airBombBaseRate() const
{
return (m_pUnitInfo->getBombRate() + getExtraBombardRate());
}
Extremely simple, yet so effective.
Got the XP for planes working (though might adjust it a bit, coz if a really old plane attacks f.ex. an infantry (which doesnt have interception skills) then it will still get 2 XP due to the strenght difference.
What is the most logical/prefered?
a) 1 XP for every airstrike and airbombardment no matter what
b) XP depending on unit strenght difference
c) only XP for airstriking units with interception chance (if enemy AI civ doesnt have any units with interception chance, then airunit will never get any XP, its a little bit like vanilla, except airunit would only get XP if actually intercepted, not just for attacking an interceptable unit.)
---------------------
Im also curious about this modification that apparently should take into account that units travel either 1 (horisontal or vertical) or squareroot of 2 (pythagoras c2=a2+b2 with a and b =1)
http://forums.civfanatics.com/showpost.php?p=9437056&postcount=13
--------------------------
This is even more fun than I thought :
Vincentz Random Defense Bombard damage (a.k.a ViRaDefBoDam!)
Its a feature I missed since starting to play Civ4. Why did all the catapult ALWAYS hit the excact same amount.... Well, not anymore. Some even misses

(new formula is, instead of constant "Unitset Bombard Damage" it is now 0-"Unitset Bombard Damage".
I might increase the bombard damage (double it) for units, since the chance of doing considerably less damage to the defense is present. (overall average should hit the "old" bombard setting)
The fun starts if all modifiers would be randomized eh? You think you might have +50 against horsies, but what if it was +(0-50)% against mounted.
Could be too drastic, but will, for now, randomize plane bombardments and airstrike damage and siege range bombards.
............and ofcourse #of collateral units and amount of collateral damage.

(Again, some of the most stupid thing in civ4 is the same same amount of units, and same amount of damage that gets hit by collateral. Strange when you think about it.