Hydromancerx
C2C Modder
Updates
- Tweaked Walls and Towers.
- Tweaked Walls and Towers.
Updates
- Subdued Animals no longer any good at city defense.
- Better buttons for Captive buildings, World Views and missions.
- Tweaked slave compound buildings to spread them a bit over the tech tree
Edit update
- Change the spelling of name of the folder Cultural_Heratage to Cultural_Heritage and update the schema.
Took out core LH file and am using Static one in the modules area.
I Think this update crash the savegames.
<iLocalRepel>25</iLocalRepel>
<iMinDefense>10</iMinDefense>
<iBuildingDefenseRecoverySpeedModifier>100</iBuildingDefenseRecoverySpeedModifier>
<iCityDefenseRecoverySpeedModifier>100</iCityDefenseRecoverySpeedModifier>
<UnitCombatRepelAgainstModifiers>
<UnitCombatRepelAgainstModifier>
<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
<iUnitCombatRepelAgainstModifier>20</iUnitCombatRepelAgainstModifier>
</UnitCombatRepelAgainstModifier>
</UnitCombatRepelAgainstModifiers>
<UnitCombatDefenseAgainstModifiers>
<UnitCombatDefenseAgainstModifier>
<UnitCombatType>UNITCOMBAT_WHEELED</UnitCombatType>
<iUnitCombatDefenseAgainstModifier>20</iUnitCombatDefenseAgainstModifier>
</UnitCombatDefenseAgainstModifier>
</UnitCombatDefenseAgainstModifiers>
Updates
- Added the Wheeled Combat Class (as a subcombat) to:
- War Wheel
- Motorcycle
- All Chariot and Wagon units
- 6 new building defense tags
- <iLocalRepel>: Generic amount of repel to all defenders - intended for traps.
- <iMinDefense>: The total of the value of this tags on all buildings in the city is the lowest Defense % the city can be reduced to. (If iMinimumDefenseLevel, which is the tag that defines how low you must reduce a city's defenses to before your units may attack, is less than the iMinDefense total in the city, this value defaults instead to the iMinDefense total. - In otherwords, you can't be put into a position where you can't attack because the lowest city defense value is higher than what you must reduce it down to.)
- <iBuildingDefenseRecoverySpeedModifier>Any building with this tag will add its defense value into a pool of defense amount that will be affected by the total of this tag's value from all buildings with this tag in the city. While the defense value in the city is standing at less than the defensive total of the buildings with this tag, the total of iBuildingDefenseRecoverySpeedModifier will be a % modifier to the speed of Defense% recovery in the city.
Thus, if I have a self repairing wall such as a nano-wall, with +100% Defense, and it has 100 in this tag, and my city has been reduced to less than 100 defense, then my city will be recovering that lost defense 100% faster until it has recovered itself to 100 or more defense. If I add another building that self-repairs that adds +50% Defense but repairs at the same rate of speed (100 in this tag) then my city will recover up to 150 defense level at a rate of 200% until past the 150 defense.
Let's simplify if all that lost you: This tag represents a building that repairs itself. The rate it repairs itself is a +% modifier to the usual recovery rate.
- <iCityDefenseRecoverySpeedModifier>: This tag, however, represents an improvement in the city's ability to repair its defenses - such as perhaps a stonemason's guild or something that enhances local moral or determination to hold. It is a +% modifier to the usual recovery rate but applies to the whole Defense value and has no point at which it stops being helpful until the defenses are fully recovered.
- <UnitCombatRepelAgainstModifiers>: Specify a Unit Combat and an amount of repel that your defenders will gain when that sort of unit attacks the city.
- <UnitCombatDefenseAgainstModifiers>: Specify a Unit Combat and an amount of Combat Modifier that your defenders will gain when that sort of unit attacks the city.
- Updated the City Defense Hover with a number of existing defense pertinent values and statuses that have never been compiled and displayed previously.
Coding examples:
Edit: Now successfully added to the SVN.Spoiler :Code:<iLocalRepel>25</iLocalRepel> <iMinDefense>10</iMinDefense> <iBuildingDefenseRecoverySpeedModifier>100</iBuildingDefenseRecoverySpeedModifier> <iCityDefenseRecoverySpeedModifier>100</iCityDefenseRecoverySpeedModifier> <UnitCombatRepelAgainstModifiers> <UnitCombatRepelAgainstModifier> <UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType> <iUnitCombatRepelAgainstModifier>20</iUnitCombatRepelAgainstModifier> </UnitCombatRepelAgainstModifier> </UnitCombatRepelAgainstModifiers> <UnitCombatDefenseAgainstModifiers> <UnitCombatDefenseAgainstModifier> <UnitCombatType>UNITCOMBAT_WHEELED</UnitCombatType> <iUnitCombatDefenseAgainstModifier>20</iUnitCombatDefenseAgainstModifier> </UnitCombatDefenseAgainstModifier> </UnitCombatDefenseAgainstModifiers>
Have you made the AI building evaluation aware of them also?
@strategyonly
CIV4UnitInfos.xml still contains information of removed promotions(SNEAK1, MARAUDER1, INDUSTRYESPIONAGE1). So xml errors pop up during loading.
for (int iI = 0; iI < GC.getNumUnitCombatInfos(); iI++);
{
iMultiplier += getUnitCombatProductionModifier((UnitCombatTypes)iI) / 4;
}