Updating an entry only partially successful

Craig_Sutter

Deity
Joined
Aug 13, 2002
Messages
2,773
Location
Calgary, Canada
So I'm slightly changing a building. In game, everything updates correctly except the BuildingClass="BUILDINGCLASS_AMPHITHEATER" does not update and in game the replacement building remains the Opera house. Why isn't that part of <Update> working, and how do I fix it? Do I need to use <Replace> and if so, how should that command be set up? The log file is errorfree.

Thank-you.

Code:
<Buildings>
		<Update>
			<Where Type="BUILDING_CEILIDH_HALL"/>
			<Set PrereqTech="TECH_DRAMA"  Cost="100" ArtDefineTag="COLESSEUM" [COLOR="red"]BuildingClass="BUILDINGCLASS_AMPHITHEATER"[/COLOR]  />
		</Update>

Appreciate the help.
 
You probably have to specifically update:

Code:
	<Civilization_BuildingClassOverrides>
		<Row>
			<CivilizationType>CIVILIZATION_CELTS</CivilizationType>
			<BuildingClassType>BUILDINGCLASS_OPERA_HOUSE</BuildingClassType>
			<BuildingType>BUILDING_CEILIDH_HALL</BuildingType>
		</Row>
	</Civilization_BuildingClassOverrides>

As regardless of what buildingclass you change the building too, that's still telling the game to replace the opera house with the ceilidh hall for the celts.
 
Back
Top Bottom