Resource icon

[BtS] Unit Combat Attack Defense Mod 2016-10-05

Description:
This mod adds a couple of new tags that allow the specification of unit combat
attack and defense modifiers separately instead of as a whole as the existing
tag <UnitCombatMods> does. What this allows you to do is split up the attack and
defense percentage modification. For instance the updated warrior definition
using the new tags looks like:
Code:
      <UnitCombatAttackMods>
        <UnitCombatAttackMod>
          <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
          <iUnitCombatMod>75</iUnitCombatMod>
        </UnitCombatAttackMod>
      </UnitCombatAttackMods>
      <UnitCombatDefenseMods>
        <UnitCombatDefenseMod>
          <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
          <iUnitCombatMod>50</iUnitCombatMod>
        </UnitCombatDefenseMod>
      </UnitCombatDefenseMods>
[CODE]

-----Notes to Modmakers-----

If you want to use this mod component in your mod I have tried to make things 
as easy as possible for you. In the XML files I have added 
<!-- Unit Combat Attack Defense Mod Start --> and 
<!-- Unit Combat Attack Defense Mod End   --> in all of the places where 
changes were made. In the SDK files I have added 
// < Unit Combat Attack Defense Mod Start > and 
// < Unit Combat Attack Defense Mod End   > in all of the places where 
changes were made. In the python files I have added
# < Unit Combat Attack Defense Mod Start > and
# < Unit Combat Attack Defense Mod End   > in all of the places where changes
were made.

-----Version Information-----
  
-----v0.1BtS------

- Setup the Unit Combat Attack Defense Mod infrastructure

- Added the new <UnitCombatAttackMods> tag that allow specification of percent 
  attack bonuses against a particular unit combat type.

- Added the new <UnitCombatDefenseMods> tag that allow specification of percent 
  defense bonuses against a particular unit combat type.

- As an example of how to use the new tags warriors have been updated in the 
  CIV4UnitInfos.xml file. 
  
-----===Credits & Thanks===-----

- Exavier - Composite Mod - readme.txt format

- Cybah - for suggesting this mod
  • Like
Reactions: tantanmen
Author
TheLopez
Downloads
358
Views
358
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from TheLopez

Top Bottom