Sid Meier's Civilization VI

Sid Meier's Civilization VI

Build. Discover. Share.
Discover new maps, scenarios, leaders, units and more. Build and share your own creations. Mods are created by and for the Civilization community, and are not officially supported by Firaxis or 2K.
WolfDragon27 19 Mar, 2024 @ 11:03pm
Range and Siege unit debuff.
Does anyone know where the range debuff and siege debuff codes are located in the game files?
I want to tweak it a bit.
< >
Showing 1-2 of 2 comments
jmerry82 30 Mar, 2024 @ 7:17pm 
Looking things up, I find two unit abilities: ABILITY_RANGED_ATTACK_DISTRICT_DEBUFF and ABILITY_BOMBARD_ATTACK_UNIT_DEBUFF. They have descriptions LOC_ABILITY_RANGED_ATTACK_DISTRICT_DEBUFF_DESCRIPTION and LOC_ABILITY_BOMBARD_ATTACK_UNIT_DEBUFF_DESCRIPTION that mention the -17 (defined in Unit_Abilities_Text.xml).

The abilities themselves, however, are text-only. No associated modifiers. The actual combat effects are elsewhere. So that part only helps you with the tooltip.

And that leads us to GlobalParameters.xml. A few key lines excerpted:
<GameInfo>
<GlobalParameters>
...
<Replace Name="COMBAT_BOMBARD_VS_UNIT_STRENGTH_MODIFIER" Value="17" />
...
<Replace Name="COMBAT_RANGED_VS_DISTRICT_STRENGTH_MODIFIER" Value="17" />
...
</GlobalParameters>
</GameInfo>

Updating that table might actually do the trick.
WolfDragon27 30 Mar, 2024 @ 7:34pm 
Thank you! I'll try.
< >
Showing 1-2 of 2 comments
Per page: 1530 50