IgnoreBuildingDefense Tag?

Grave

1 Goat = 400 Horses
Joined
May 5, 2002
Messages
1,530
Location
Louisiana
I noticed that gunpowder units have this tag set to "true". Does this mean that gunpowder units (and all other late game units) ignore the Walls and Castle defense bonus, like they did in Civilization IV?

Code:
		<Row>
			<Class>UNITCLASS_MUSKETMAN</Class>
			<Type>UNIT_MUSKETMAN</Type>
			<PrereqTech>TECH_GUNPOWDER</PrereqTech>
			<Combat>24</Combat>
			<Cost>150</Cost>
			<FaithCost>300</FaithCost>
			<RequiresFaithPurchaseEnabled>true</RequiresFaithPurchaseEnabled>
			<Moves>2</Moves>
			<CombatClass>UNITCOMBAT_GUN</CombatClass>
			<Domain>DOMAIN_LAND</Domain>
			<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
			<Description>TXT_KEY_UNIT_MUSKETMAN</Description>
			<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_MEDIEVAL_MUSKETMAN_TEXT</Civilopedia>
			<Strategy>TXT_KEY_UNIT_MUSKETMAN_STRATEGY</Strategy>
			<Help>TXT_KEY_UNIT_HELP_MUSKETMAN</Help>
			<MilitarySupport>true</MilitarySupport>
			<MilitaryProduction>true</MilitaryProduction>
			<Pillage>true</Pillage>
[COLOR="Red"][B]			<IgnoreBuildingDefense>true</IgnoreBuildingDefense>[/B][/COLOR]
			<ObsoleteTech>TECH_RIFLING</ObsoleteTech>
			<GoodyHutUpgradeUnitClass>UNITCLASS_RIFLEMAN</GoodyHutUpgradeUnitClass>
			<AdvancedStartCost>25</AdvancedStartCost>
			<XPValueAttack>3</XPValueAttack>
			<XPValueDefense>3</XPValueDefense>
			<Conscription>4</Conscription>
			<UnitArtInfo>ART_DEF_UNIT_MUSKETMAN</UnitArtInfo>
			<UnitFlagIconOffset>37</UnitFlagIconOffset>
			<IconAtlas>UNIT_ATLAS_1</IconAtlas>
			<PortraitIndex>38</PortraitIndex>
		</Row>
 
I've checked the DLL code, and it's a bit cryptic in this regard, but it seems it's not really used in Civ5, and it's just another obsolete tag, like XPValueAttack, XPValueDefense and Conscription.
 
Long time since I checked that code, but IIRC it's not used from the unit as it's been moved to a promotion (which things like Artillery and RAs get)
 
Long time since I checked that code, but IIRC it's not used from the unit as it's been moved to a promotion (which things like Artillery and RAs get)

They only get a bonus vs cities, AFAIK they don't ignore any buildings.
 
I'm pretty sure the promotion ability just provides an attack bonus vs cities, not necessarily ignoring building defenses.

On a somewhat related subject... is there a definitive thread anywhere that outlines exactly which XML tags are inactive?
 
The database is (effectively) read-only once the game has started (all important db values are cached in C++ data structures as the game loads). So while you can use SQL to update the database at runtime it 99.9% of the time has no effect on actual play
 
Back
Top Bottom