Hi everyone,
While I am pretty new to civ modding, I am currently working on a mod that add a civilization. While working on adding a new civ I found out that my UNIT_GREAT_CANOE did not replcae the UNIT_GALLEY as intended but that you could build both of them. Can someone help me on the subject?
Here is my unit XML and I have added screenshots that shows both of them side by side.
While I am pretty new to civ modding, I am currently working on a mod that add a civilization. While working on adding a new civ I found out that my UNIT_GREAT_CANOE did not replcae the UNIT_GALLEY as intended but that you could build both of them. Can someone help me on the subject?
Here is my unit XML and I have added screenshots that shows both of them side by side.
Code:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
<Types>
<Row Type="UNIT_GREAT_CANOE" Kind="KIND_UNIT"/>
</Types>
<Units>
<Row UnitType="UNIT_GREAT_CANOE" BaseMoves="4" Cost="65" AdvisorType="ADVISOR_CONQUEST" BaseSightRange="2" ZoneOfControl="true" Domain="DOMAIN_SEA" FormationClass="FORMATION_CLASS_NAVAL" Name="LOC_UNIT_GREAT_CANOE_NAME" Description="LOC_UNIT_GREAT_CANOE_DESCRIPTION" PurchaseYield="YIELD_GOLD" PseudoYieldType="PSEUDOYIELD_UNIT_NAVAL_COMBAT" PromotionClass="PROMOTION_CLASS_NAVAL_MELEE" Maintenance="1" Combat="20" MandatoryObsoleteTech="TECH_STEAM_POWER" PrereqTech="TECH_SAILING"/>
</Units>
<UnitUpgrades>
<Row Unit="UNIT_GREAT_CANOE" UpgradeUnit="UNIT_CARAVEL"/>
</UnitUpgrades>
<UnitReplaces>
<Row CivUniqueUnitType="UNIT_GREAT_CANOE" ReplacesUnitType="UNIT_GALLEY"/>
</UnitReplaces>
<UnitAIInfos>
<Row UnitType="UNIT_GREAT_CANOE" AiType="UNITAI_COMBAT"/>
<Row UnitType="UNIT_GREAT_CANOE" AiType="UNITAI_EXPLORE"/>
<Row UnitType="UNIT_GREAT_CANOE" AiType="UNITTYPE_MELEE"/>
<Row UnitType="UNIT_GREAT_CANOE" AiType="UNITTYPE_NAVAL"/>
</UnitAIInfos>
<TypeTags>
<Row Type="UNIT_GREAT_CANOE" Tag="CLASS_NAVAL_MELEE"/>
</TypeTags>
</GameData>