Resizing the Citadel

You just have to change <Scale> in ArtDefine_Landmarks.
 
Not exactly certain if the following code is adequate to change the entries... I used the <Replace>...</Replace> method to make the changes. I was unsure how to use update in this case. I'm not even certain if <Replace> is the proper method or I've used it correctly. Other than surrounding the entries for Citadel with <Replace>, I've only changed the scale to be 1/3 of the standard.

Code:
<LandmarkArtInfo>
		<Replace>
		<Era>Ancient</Era>
		<State>Constructed</State>
		<fScale>.33</fScale>
		<ImprovementType>ART_DEF_IMPROVEMENT_CITADEL</ImprovementType>
		<LayoutHandler>SNAPSHOT</LayoutHandler>
		<ResourceType>ART_DEF_RESOURCE_ALL</ResourceType>
		<FXSXML>Assets/Buildings/Improvements/Citadel/Anc_Citadel.fxsxml</FXSXML>
		<bTerrainContour>True</bTerrainContour>
		</Replace>
	</LandmarkArtInfo>
	
	<LandmarkArtInfo>
		<Replace>
		<Era>Ancient</Era>
		<State>Pillaged</State>
		<fScale>.33</fScale>
		<ImprovementType>ART_DEF_IMPROVEMENT_CITADEL</ImprovementType>
		<LayoutHandler>SNAPSHOT</LayoutHandler>
		<ResourceType>ART_DEF_RESOURCE_ALL</ResourceType>
		<FXSXML>Assets/Buildings/Improvements/Citadel/PL_Anc_Citadel.fxsxml</FXSXML>
		<bTerrainContour>True</bTerrainContour>
		</Replace>
	</LandmarkArtInfo>

Am I changing the code correctly?
 
There is no database table called LandmarkArtInfo (it's ArtDefine_Landmarks), but even if there was the <Replace> tag wouldn't work as that requires the table to have a primary key.

Code:
<ArtDefine_Landmarks>
  <Update>
    <Where ImprovementType="ART_DEF_IMPROVEMENT_CITADEL"/>
    <Set Scale="0.33"/>
  </Update>
</ArtDefine_Landmarks>

will update all 4 Citadel entries in the table
 
Back
Top Bottom