Jorsalfare
Prince
Oh, I see. Sorry about that.
if ( _this->Attack_Unit->Body.CivID )
{
v162 = class_Unit::Get_Default_Hit_Points(_this->Attack_Unit) - _this->Attack_Unit->Body.Damage;
if ( v162 >= 0 )
{
if ( v162 <= 9999 )
{
if ( v162 == 1 )
{
v163 = class_Unit::Get_Default_Hit_Points(_this->Defence_Unit) - _this->Defence_Unit->Body.Damage;
if ( v163 >= 0 )
{
if ( v163 > 9999 || v163 > 1 )
{
if ( class_Random::Get_Random(
&Random_1,
BIC_Data.CombatExperience[_this->Defence_Unit->Body.Combat_Experience].Retreat_Bonus + 50) < BIC_Data.CombatExperience[_this->Attack_Unit->Body.Combat_Experience].Retreat_Bonus )
{
The other tests are useless... Unless there is something else important in this function?
No. this conditions doesn't have "else" block.
This is really stange code, and the function itself (too big and too tortuous).
And there is another place with the same conditions and random comparing. I'm trying to find out, what is it related with...
Oh yea have you done the submarine bug yet? Its not only submarine stuff. When you create an invisible unit u get the same results. I couldnt even make snipers in my mod :/
Oh yea have you done the submarine bug yet? Its not only submarine stuff. When you create an invisible unit u get the same results. I couldnt even make snipers in my mod :/
Unless i assumed wrong, I had my snipers become available in the modern age. Once the AI started building them, wars started to break out all over the globe. I play on a world map and its kinda messy the way the Ai builds cities when they are cramped up in Europe. Specially along the borders of Germany, Russia, and Asia.
My snipers didnt require any resources so i assumed most of the smaller european nations would build them and send them to their cities all across asia since i made them a defensive unit and invisible.
Unless i was really unlucky, but basically after the AI had the tech to build snipers WW3 followed.