Is it possible to edit combat damage in air warfare?

Joined
Apr 11, 2015
Messages
438
Say, if one wanted a bomber to inflict half as much damage to a land unit and receive half as much damage in return. Or make air-to-air combat half as deadly.

These files in GlobalDefines might be relevant?

Code:
        <Row Name="AIR_STRIKE_SAME_STRENGTH_MIN_DEFENSE_DAMAGE">
            <Value>2400</Value>
        </Row>
        <!-- Note: this will actually produce something between 0.00 and the listed number in damage -->
        <Row Name="AIR_STRIKE_SAME_STRENGTH_POSSIBLE_EXTRA_DEFENSE_DAMAGE">
            <Value>1200</Value>
        </Row>
        <Row Name="INTERCEPTION_SAME_STRENGTH_MIN_DAMAGE">
            <Value>2400</Value>
        </Row>
        <!-- Note: this will actually produce something between 0.00 and the listed number in damage -->
        <Row Name="INTERCEPTION_SAME_STRENGTH_POSSIBLE_EXTRA_DAMAGE">
            <Value>1200</Value>
        </Row>
        <Row Name="AIR_SWEEP_INTERCEPTION_DAMAGE_MOD">
            <Value>0</Value>
 
Last edited:
Having done some testing, it looks like its the first four of those. I think that the Air Strike values look to be related to the damage an aircraft receives from the ground, with the damage they mete being governed by their Ranged Strength.
 
I've hit a metaphorical brick wall with this. While the amount of Air-to-Ground attack damage can be modified through changing Ranged Strength, and the Air-to-Ground defense damage can be modified by changing the two AIR_STRIKE values in the Code box above, Air-to-Air combat appears to be governed by the ATTACK_SAME_STRENGTH_MIN_DAMAGE and _EXTRA DAMAGE values. These are the values that govern melee unit damage, so changing this would change combat for all melee units. There are values that I had hoped would be relevant - INTERCEPTION_SAME_STRENGTH_MIN_DAMAGE & _EXTRA DAMAGE as well as AIR_SWEEP_INTERCEPTION_DAMAGE_MOD - but I haven't managed to find any effect these values have on anything.
 
I've found a promotion available to bombers called "Evasion" that looks as if it has potential as it gives an "InterceptionDefenseDamageModifier". Here's the code:
Code:
        <Row>
            <Type>PROMOTION_EVASION</Type>
            <Description>TXT_KEY_PROMOTION_EVASION</Description>
            <Help>TXT_KEY_PROMOTION_EVASION_HELP</Help>
            <Sound>AS2D_IF_LEVELUP</Sound>
            <PromotionPrereqOr1>PROMOTION_AIR_SIEGE_2</PromotionPrereqOr1>
            <PromotionPrereqOr2>PROMOTION_BOMBARDMENT_2</PromotionPrereqOr2>
            <OrderPriority>7</OrderPriority>
            <InterceptionDefenseDamageModifier>-50</InterceptionDefenseDamageModifier>
            <PortraitIndex>23</PortraitIndex>
            <IconAtlas>PROMOTION_ATLAS</IconAtlas>
            <PediaType>PEDIA_AIR</PediaType>
            <PediaEntry>TXT_KEY_PROMOTION_EVASION</PediaEntry>
        </Row>
I tried giving it to Fighter units, using this code in the Unit_FreePromotions section of CIV5Units, but it hasn't appeared in-game.
Code:
    <Unit_FreePromotions>
        <Row>
            <UnitType>UNIT_FIGHTER</UnitType>
            <PromotionType>PROMOTION_EVASION</PromotionType>
        </Row>

EDIT: I managed to get the Evasion promotion appearing in the game for Fighters by adding the following code, but it doesn't appear to have any effect on Air-to-Air combat results.
Code:
    <UnitPromotions_UnitCombats>
        <Row>
            <PromotionType>PROMOTION_EVASION</PromotionType>
            <UnitCombatType>UNITCOMBAT_FIGHTER</UnitCombatType>
        </Row>
 
Last edited:
Back
Top Bottom