<ModOps>
  <!-- Integriere Lordys Public Mod Buildings to the game -> Hacienda Build Menu -->
  <!-- #Hacienda Church -->
  <ModOp Type="addNextSibling" GUID="101258">
    <Asset>
      <BaseAssetGUID>101258</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002074</GUID>
          <Name>service_colony01_02 (Chapel) Hacienda</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_church.png</IconFilename>
        </Standard>
        <Building>
          <SecondPartyRelevant>0</SecondPartyRelevant>
        </Building>
        <Blocking />
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>PublicServiceBuilding</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>1500</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>PublicServiceBuilding</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>10</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>PublicServiceBuilding</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>15</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>PublicServiceBuilding</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>PublicServiceBuilding</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>PublicServiceBuilding</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/church/hacienda_church.cfg</Filename>
            </Item>
          </Variations>
          <Skins>
            <DefaultSkinName>101258</DefaultSkinName>
            <DefaultSkinDescription>23853</DefaultSkinDescription>
            <DefaultSkinCategoryName>7312</DefaultSkinCategoryName>
          </Skins>
        </Object>
        <Mesh />
        <Selection />
        <Text>
          <LocaText>
            <English>
              <Text>Chapel</Text>
            </English>
          </LocaText>
          <LineID>8498</LineID>
        </Text>
        <Constructable />
        <Locked />
        <SoundEmitter />
        <FeedbackController />
        <Infolayer />
        <UpgradeList />
        <LogisticNode />
        <PublicService>
          <FullSatisfactionDistance>60</FullSatisfactionDistance>
          <NoSatisfactionDistance>90</NoSatisfactionDistance>
          <PublicServiceOutputs>
            <Item>
              <Product>120050</Product>
            </Item>
          </PublicServiceOutputs>
        </PublicService>
        <AmbientMoodProvider />
        <Maintenance>
          <Maintenances>
            <Item>
              <Product>1010017</Product>
              <Amount>200</Amount>
              <InactiveAmount>50</InactiveAmount>
            </Item>
          </Maintenances>
        </Maintenance>
        <Attackable>
          <AttackableType>IslandBuilding</AttackableType>
          <SelfHealPerHealTick>4</SelfHealPerHealTick>
          <MaximumHitPoints>3000</MaximumHitPoints>
        </Attackable>
        <Pausable>
          <IsHaciendaDependent>1</IsHaciendaDependent>
        </Pausable>
        <IncidentInfectable />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="111261" Path="/Values/PlayerCounterContextPool/Contexts">
    <Item>
      <Asset>1999002074</Asset>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="191501,190784,368" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002074</GUID>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="191705,191706,191707,191741,191742,191743" Path="/Values/ItemEffect/EffectTargets">
    <Item>
      <GUID>1999002074</GUID>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="1999002020,1999002070" Condition="@1999002020" Path="/Values/ConstructionCategory/BuildingList/Item[Building='24792']">
    <Item>
      <Building>1999002074</Building>
    </Item>
  </ModOp>
  <!-- Mercier minus rep, if church is built-->
  <ModOp Type="add" GUID="219" Path="/Values/ParticipantMessages/MessageTriggers/BuildingBuilt/Reactions">
    <Item>
      <MyRole>ObserverToInitiator</MyRole>
      <RequiredDiplomacyState>Peace;TradeRights;Alliance;CeaseFire;NonAttack</RequiredDiplomacyState>
      <RequiredContextAsset>1999002074</RequiredContextAsset>
      <CooldownTime>14400000</CooldownTime>
      <SideEffect>AddReputation</SideEffect>
      <SideEffectValue>-2</SideEffectValue>
      <Notification>
        <Template>CharacterNotification</Template>
        <Values>
          <CharacterNotification />
          <BaseNotification>
            <NotificationText>111637</NotificationText>
          </BaseNotification>
          <NotificationSubtitle>
            <Subtitle>111857</Subtitle>
          </NotificationSubtitle>
        </Values>
      </Notification>
      <ReputationLogEntry>111619</ReputationLogEntry>
      <NotificationFilter>Diplomacy</NotificationFilter>
    </Item>
  </ModOp>
  <!-- #Police Station -->
  <ModOp Type="addNextSibling" GUID="101274">
    <Asset>
      <BaseAssetGUID>101274</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002075</GUID>
          <Name>institution_colony01_01 (Police) Hacienda</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_police.png</IconFilename>
        </Standard>
        <Building>
          <SecondPartyRelevant>0</SecondPartyRelevant>
        </Building>
        <Blocking />
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>2500</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>6</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>10</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Object>
          <Variations>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Filename>data/modgraphics/hacienda_expanded/police_station/hacienda_police.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Mesh />
        <Selection />
        <Text>
          <LineID>8500</LineID>
        </Text>
        <Constructable />
        <Locked />
        <SoundEmitter />
        <FeedbackController />
        <Infolayer />
        <UpgradeList />
        <IncidentResolver>
          <ResolverUnit>100581</ResolverUnit>
          <ResolverUnitCount>2</ResolverUnitCount>
          <SpecialUnit>100582</SpecialUnit>
          <ResolvableIncidents>Riot</ResolvableIncidents>
          <DuringConstructionText>17464</DuringConstructionText>
          <DuringIncidentHeadline>3780</DuringIncidentHeadline>
          <ActionButtonText>3690</ActionButtonText>
          <DuringIncidentHeadlineIcon>500322</DuringIncidentHeadlineIcon>
        </IncidentResolver>
        <Maintenance>
          <Maintenances>
            <Item>
              <Product>1010017</Product>
              <Amount>250</Amount>
              <InactiveAmount>125</InactiveAmount>
            </Item>
          </Maintenances>
        </Maintenance>
        <Attackable />
        <Pausable>
          <IsHaciendaDependent>1</IsHaciendaDependent>
        </Pausable>
        <IncidentInfluencer>
          <Influence>
            <Riot>
              <Influence>-10</Influence>
              <Distance>30</Distance>
            </Riot>
          </Influence>
        </IncidentInfluencer>
        <DelayedConstruction />
        <AmbientMoodProvider />
        <Culture />
        <QuestObject />
        <Upgradable>
          <NextGUID>1999002145</NextGUID>
          <UpgradeCost>
            <Item>
              <Amount>7</Amount>
              <Ingredient>1010196</Ingredient>
            </Item>
            <Item>
              <Amount>5</Amount>
              <Ingredient>1010205</Ingredient>
            </Item>
          </UpgradeCost>
        </Upgradable>
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="101274">
    <Asset>
      <Template>CityInstitutionBuildingAdvanced</Template>
      <Values>
        <Standard>
          <GUID>1999002145</GUID>
          <Name>advanced_institution_colony01_01 (Police) Hacienda</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_advanced_police.png</IconFilename>
          <InfoDescription>3788</InfoDescription>
        </Standard>
        <Building>
          <BuildModeRandomRotation>180</BuildModeRandomRotation>
          <AssociatedRegions>Colony01</AssociatedRegions>
          <SecondPartyRelevant>0</SecondPartyRelevant>
        </Building>
        <Blocking />
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuildingAdvanced</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>5000</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuildingAdvanced</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>13</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuildingAdvanced</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>15</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuildingAdvanced</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuildingAdvanced</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuildingAdvanced</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/advanced_police_station/advanced_hacienda_police.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Mesh />
        <Selection>
          <GUIType>CityInstitution</GUIType>
          <StaticHelpEntryPoint>NewWorldRising_CityInstitutions</StaticHelpEntryPoint>
          <OnSelection>
            <IsBaseAutoCreateAsset>1</IsBaseAutoCreateAsset>
            <Values>
              <ActionList />
            </Values>
          </OnSelection>
        </Selection>
        <Text>
          <LineID>8500</LineID>
        </Text>
        <Constructable />
        <Locked>
          <DLCDependency>24963</DLCDependency>
        </Locked>
        <SoundEmitter />
        <FeedbackController />
        <Infolayer />
        <UpgradeList />
        <IncidentResolver>
          <ResolverUnit>100581</ResolverUnit>
          <ResolverUnitCount>2</ResolverUnitCount>
          <SpecialUnit>7267</SpecialUnit>
          <SpecialActionCooldown>60000</SpecialActionCooldown>
          <SpecialUnitThresholds>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuildingAdvanced</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <HappinessThreshold>0</HappinessThreshold>
              <PopulationCount>100</PopulationCount>
            </Item>
          </SpecialUnitThresholds>
          <ResolvableIncidents>Riot</ResolvableIncidents>
          <DuringConstructionText>17464</DuringConstructionText>
          <DuringIncidentHeadline>3780</DuringIncidentHeadline>
          <ActionButtonText>3690</ActionButtonText>
          <DuringIncidentHeadlineIcon>500322</DuringIncidentHeadlineIcon>
          <ProductivityForAdvancedOperation>1</ProductivityForAdvancedOperation>
        </IncidentResolver>
        <Maintenance>
          <Maintenances>
            <Item>
              <Product>1010017</Product>
              <Amount>350</Amount>
              <InactiveAmount>175</InactiveAmount>
            </Item>
          </Maintenances>
        </Maintenance>
        <Attackable>
          <AttackableType>IslandBuilding</AttackableType>
          <MaximumHitPoints>5500</MaximumHitPoints>
          <SelfHealPerHealTick>4</SelfHealPerHealTick>
        </Attackable>
        <Pausable>
          <IsHaciendaDependent>1</IsHaciendaDependent>
        </Pausable>
        <IncidentInfluencer>
          <Influence>
            <Riot>
              <Influence>-30</Influence>
              <Distance>45</Distance>
            </Riot>
          </Influence>
        </IncidentInfluencer>
        <DelayedConstruction />
        <AmbientMoodProvider>
          <AmbientMood>ResidenceTier1</AmbientMood>
        </AmbientMoodProvider>
        <Culture />
        <QuestObject />
        <Upgradable>
          <CurrentTier>1</CurrentTier>
        </Upgradable>
        <FactoryBase>
          <FactoryInputs>
            <Item>
              <Product>5394</Product>
              <Amount>1</Amount>
              <StorageAmount>4</StorageAmount>
            </Item>
          </FactoryInputs>
          <CycleTime>360</CycleTime>
          <ClampMaxTransporterLogisticCost>1</ClampMaxTransporterLogisticCost>
          <ClampedMaxTransporterLogisticCost>150</ClampedMaxTransporterLogisticCost>
        </FactoryBase>
        <Factory7 />
        <LogisticNode />
        <BuffFactory>
          <ProvidesPublicServiceNeed>1</ProvidesPublicServiceNeed>
          <PublicServiceData>
            <PublicServices>
              <Item>
                <PublicService>6261</PublicService>
              </Item>
            </PublicServices>
            <FullSatisfactionDistance>45</FullSatisfactionDistance>
          </PublicServiceData>
        </BuffFactory>
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="111261" Path="/Values/PlayerCounterContextPool/Contexts">
    <Item>
      <Asset>1999002075</Asset>
    </Item>
    <Item>
      <Asset>1999002145</Asset>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="190776,368" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002075</GUID>
    </Item>
    <Item>
      <GUID>1999002145</GUID>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="8905" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002145</GUID>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="7301" Path="/Values/ProductionChain/Tier1">
    <Item>
      <Building>1999002145</Building>
    </Item>
  </ModOp>
  <!-- Mercier minus rep, if police is built-->
  <ModOp Type="add" GUID="219" Path="/Values/ParticipantMessages/MessageTriggers/BuildingBuilt/Reactions">
    <Item>
      <MyRole>ObserverToInitiator</MyRole>
      <RequiredDiplomacyState>Peace;TradeRights;Alliance;CeaseFire;NonAttack</RequiredDiplomacyState>
      <RequiredContextAsset>1999002075</RequiredContextAsset>
      <CooldownTime>14400000</CooldownTime>
      <SideEffect>AddReputation</SideEffect>
      <SideEffectValue>-3</SideEffectValue>
      <Notification>
        <Template>CharacterNotification</Template>
        <Values>
          <CharacterNotification />
          <BaseNotification>
            <NotificationText>111647</NotificationText>
          </BaseNotification>
          <NotificationSubtitle>
            <SubtitleGroup>1456891807</SubtitleGroup>
          </NotificationSubtitle>
        </Values>
      </Notification>
      <ReputationLogEntry>111626</ReputationLogEntry>
      <NotificationFilter>Diplomacy</NotificationFilter>
    </Item>
    <Item>
      <MyRole>ObserverToInitiator</MyRole>
      <RequiredDiplomacyState>Peace;TradeRights;Alliance;CeaseFire;NonAttack</RequiredDiplomacyState>
      <RequiredContextAsset>1999002145</RequiredContextAsset>
      <CooldownTime>14400000</CooldownTime>
      <SideEffect>AddReputation</SideEffect>
      <SideEffectValue>-3</SideEffectValue>
      <Notification>
        <Template>CharacterNotification</Template>
        <Values>
          <CharacterNotification />
          <BaseNotification>
            <NotificationText>111647</NotificationText>
          </BaseNotification>
          <NotificationSubtitle>
            <SubtitleGroup>1456891807</SubtitleGroup>
          </NotificationSubtitle>
        </Values>
      </Notification>
      <ReputationLogEntry>111626</ReputationLogEntry>
      <NotificationFilter>Diplomacy</NotificationFilter>
    </Item>
  </ModOp>
  <!-- #Feuerwehr -->
  <ModOp Type="addNextSibling" GUID="101275">
    <Asset>
      <BaseAssetGUID>101275</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002098</GUID>
          <Name>institution_colony01_02 (Firestation) Hacienda</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_fire_station.png</IconFilename>
        </Standard>
        <Building>
          <SecondPartyRelevant>0</SecondPartyRelevant>
        </Building>
        <Blocking />
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>2500</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>6</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>10</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Object>
          <Variations>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Filename>data/modgraphics/hacienda_expanded/fire_station/hacienda_fire_station.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Mesh />
        <Selection>
          <OnSelection>
            <IsBaseAutoCreateAsset>1</IsBaseAutoCreateAsset>
            <Values>
              <ActionList />
            </Values>
          </OnSelection>
        </Selection>
        <Text>
          <LineID>8500</LineID>
        </Text>
        <Constructable />
        <Locked />
        <SoundEmitter />
        <FeedbackController />
        <Infolayer />
        <UpgradeList />
        <IncidentResolver>
          <ResolverUnit>100579</ResolverUnit>
          <ResolverUnitCount>2</ResolverUnitCount>
          <SpecialUnit>100580</SpecialUnit>
          <ResolvableIncidents>Fire</ResolvableIncidents>
          <DuringConstructionText>17463</DuringConstructionText>
          <DuringIncidentHeadline>3779</DuringIncidentHeadline>
          <ActionButtonText>3690</ActionButtonText>
          <DuringIncidentHeadlineIcon>500323</DuringIncidentHeadlineIcon>
        </IncidentResolver>
        <Maintenance>
          <Maintenances>
            <Item>
              <Product>1010017</Product>
              <Amount>250</Amount>
              <InactiveAmount>125</InactiveAmount>
            </Item>
          </Maintenances>
        </Maintenance>
        <Attackable />
        <Pausable>
          <IsHaciendaDependent>1</IsHaciendaDependent>
        </Pausable>
        <IncidentInfluencer>
          <Influence>
            <Fire>
              <Influence>-10</Influence>
              <Distance>20</Distance>
            </Fire>
            <Explosion>
              <Influence>-10</Influence>
              <Distance>12</Distance>
            </Explosion>
          </Influence>
        </IncidentInfluencer>
        <DelayedConstruction />
        <AmbientMoodProvider />
        <Culture />
        <QuestObject />
        <Upgradable>
          <NextGUID>1999002146</NextGUID>
          <UpgradeCost>
            <Item>
              <Amount>4</Amount>
              <Ingredient>1010196</Ingredient>
            </Item>
            <Item>
              <Amount>5</Amount>
              <Ingredient>1010205</Ingredient>
            </Item>
          </UpgradeCost>
        </Upgradable>
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="101275">
    <Asset>
      <Template>CityInstitutionBuildingAdvanced</Template>
      <Values>
        <Standard>
          <GUID>1999002146</GUID>
          <Name>advanced_institution_colony01_02 (Firestation) Hacienda</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_advanced_fire_station.png</IconFilename>
          <InfoDescription>118032</InfoDescription>
        </Standard>
        <Building>
          <BuildModeRandomRotation>180</BuildModeRandomRotation>
          <AssociatedRegions>Colony01</AssociatedRegions>
          <SecondPartyRelevant>0</SecondPartyRelevant>
        </Building>
        <Blocking />
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>5000</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>10</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>15</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/advanced_fire_station/advanced_hacienda_fire_station.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Mesh />
        <Selection>
          <GUIType>CityInstitution</GUIType>
          <StaticHelpEntryPoint>NewWorldRising_CityInstitutions</StaticHelpEntryPoint>
          <OnSelection>
            <IsBaseAutoCreateAsset>1</IsBaseAutoCreateAsset>
            <Values>
              <ActionList />
            </Values>
          </OnSelection>
        </Selection>
        <Text>
          <LineID>8500</LineID>
        </Text>
        <Constructable />
        <Locked>
          <DLCDependency>24963</DLCDependency>
        </Locked>
        <SoundEmitter />
        <FeedbackController />
        <Infolayer />
        <UpgradeList />
        <IncidentResolver>
          <ResolverUnit>100579</ResolverUnit>
          <ResolverUnitCount>2</ResolverUnitCount>
          <SpecialUnit>7266</SpecialUnit>
          <SpecialActionCooldown>60000</SpecialActionCooldown>
          <SpecialUnitThresholds>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuildingAdvanced</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <HappinessThreshold>0</HappinessThreshold>
              <PopulationCount>100</PopulationCount>
            </Item>
          </SpecialUnitThresholds>
          <ResolvableIncidents>Fire</ResolvableIncidents>
          <DuringConstructionText>17463</DuringConstructionText>
          <DuringIncidentHeadline>3779</DuringIncidentHeadline>
          <ActionButtonText>3690</ActionButtonText>
          <DuringIncidentHeadlineIcon>500323</DuringIncidentHeadlineIcon>
          <ProductivityForAdvancedOperation>1</ProductivityForAdvancedOperation>
        </IncidentResolver>
        <Maintenance>
          <Maintenances>
            <Item>
              <Product>1010017</Product>
              <Amount>350</Amount>
              <InactiveAmount>175</InactiveAmount>
            </Item>
          </Maintenances>
        </Maintenance>
        <Attackable />
        <Pausable>
          <IsHaciendaDependent>1</IsHaciendaDependent>
          <CanPauseManually>1</CanPauseManually>
        </Pausable>
        <IncidentInfluencer>
          <Influence>
            <Fire>
              <Influence>-25</Influence>
              <Distance>30</Distance>
            </Fire>
            <Explosion>
              <Influence>-20</Influence>
              <Distance>20</Distance>
            </Explosion>
          </Influence>
        </IncidentInfluencer>
        <DelayedConstruction />
        <AmbientMoodProvider>
          <AmbientMood>ResidenceTier1</AmbientMood>
        </AmbientMoodProvider>
        <Culture />
        <QuestObject />
        <Upgradable>
          <CurrentTier>1</CurrentTier>
        </Upgradable>
        <FactoryBase>
          <FactoryInputs>
            <Item>
              <Product>5393</Product>
              <Amount>1</Amount>
              <StorageAmount>4</StorageAmount>
            </Item>
          </FactoryInputs>
          <CycleTime>360</CycleTime>
          <ClampMaxTransporterLogisticCost>1</ClampMaxTransporterLogisticCost>
          <ClampedMaxTransporterLogisticCost>150</ClampedMaxTransporterLogisticCost>
        </FactoryBase>
        <Factory7 />
        <LogisticNode />
        <BuffFactory>
          <ProvidesPublicServiceNeed>1</ProvidesPublicServiceNeed>
          <PublicServiceData>
            <PublicServices>
              <Item>
                <PublicService>6262</PublicService>
              </Item>
            </PublicServices>
            <FullSatisfactionDistance>30</FullSatisfactionDistance>
          </PublicServiceData>
        </BuffFactory>
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="190775,368" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002098</GUID>
    </Item>
    <Item>
      <GUID>1999002146</GUID>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="7300" Path="/Values/ProductionChain/Tier1">
    <Item>
      <Building>1999002146</Building>
    </Item>
  </ModOp>
  <!-- #Hospital -->
  <ModOp Type="addNextSibling" GUID="101276">
    <Asset>
      <BaseAssetGUID>101276</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002100</GUID>
          <Name>institution_colony01_03 (Hospital) Hacienda</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_hospital.png</IconFilename>
        </Standard>
        <Building>
          <SecondPartyRelevant>0</SecondPartyRelevant>
        </Building>
        <Blocking />
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>10000</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>12</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>20</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Object>
          <Variations>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Filename>data/modgraphics/hacienda_expanded/institution_colony01_03/institution_colony01_03.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Mesh />
        <Selection>
          <OnSelection>
            <IsBaseAutoCreateAsset>1</IsBaseAutoCreateAsset>
            <Values>
              <ActionList />
            </Values>
          </OnSelection>
        </Selection>
        <Text>
          <LineID>8500</LineID>
        </Text>
        <Constructable />
        <Locked />
        <SoundEmitter />
        <FeedbackController />
        <Infolayer />
        <UpgradeList />
        <IncidentResolver>
          <ResolverUnit>100583</ResolverUnit>
          <ResolverUnitCount>2</ResolverUnitCount>
          <SpecialUnit>100584</SpecialUnit>
          <ResolvableIncidents>Illness</ResolvableIncidents>
          <DuringConstructionText>15224</DuringConstructionText>
          <DuringIncidentHeadline>3781</DuringIncidentHeadline>
          <ActionButtonText>3690</ActionButtonText>
          <DuringIncidentHeadlineIcon>501922</DuringIncidentHeadlineIcon>
        </IncidentResolver>
        <Maintenance>
          <Maintenances>
            <Item>
              <Product>1010017</Product>
              <Amount>250</Amount>
              <InactiveAmount>125</InactiveAmount>
            </Item>
          </Maintenances>
        </Maintenance>
        <Attackable />
        <Pausable>
          <IsHaciendaDependent>1</IsHaciendaDependent>
        </Pausable>
        <IncidentInfluencer>
          <Influence>
            <Illness>
              <Influence>-10</Influence>
              <Distance>25</Distance>
            </Illness>
          </Influence>
        </IncidentInfluencer>
        <DelayedConstruction />
        <AmbientMoodProvider />
        <Culture />
        <QuestObject />
        <Upgradable>
          <NextGUID>1999002147</NextGUID>
          <UpgradeCost>
            <Item>
              <Amount>8</Amount>
              <Ingredient>1010196</Ingredient>
            </Item>
            <Item>
              <Amount>10</Amount>
              <Ingredient>1010205</Ingredient>
            </Item>
          </UpgradeCost>
        </Upgradable>
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="101276">
    <Asset>
      <Template>CityInstitutionBuildingAdvanced</Template>
      <Values>
        <Standard>
          <GUID>1999002147</GUID>
          <Name>advanced_institution_colony01_03 (Hospital) Hacienda</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_advanced_hospital.png</IconFilename>
          <InfoDescription>3789</InfoDescription>
        </Standard>
        <Building>
          <BuildModeRandomRotation>180</BuildModeRandomRotation>
          <AssociatedRegions>Colony01</AssociatedRegions>
          <SecondPartyRelevant>0</SecondPartyRelevant>
        </Building>
        <Blocking />
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>15000</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>20</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>30</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuilding</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/advanced_hospital/institution_advanced_colony01_03.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Mesh />
        <Selection>
          <GUIType>CityInstitution</GUIType>
          <StaticHelpEntryPoint>NewWorldRising_CityInstitutions</StaticHelpEntryPoint>
          <OnSelection>
            <IsBaseAutoCreateAsset>1</IsBaseAutoCreateAsset>
            <Values>
              <ActionList />
            </Values>
          </OnSelection>
        </Selection>
        <Text>
          <LineID>8500</LineID>
        </Text>
        <Constructable />
        <Locked>
          <DLCDependency>24963</DLCDependency>
        </Locked>
        <SoundEmitter />
        <FeedbackController />
        <Infolayer />
        <UpgradeList />
        <IncidentResolver>
          <ResolverUnit>100583</ResolverUnit>
          <ResolverUnitCount>2</ResolverUnitCount>
          <SpecialUnit>7268</SpecialUnit>
          <SpecialActionCooldown>60000</SpecialActionCooldown>
          <SpecialUnitThresholds>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>CityInstitutionBuildingAdvanced</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <HappinessThreshold>0</HappinessThreshold>
              <PopulationCount>100</PopulationCount>
            </Item>
          </SpecialUnitThresholds>
          <ResolvableIncidents>Illness</ResolvableIncidents>
          <DuringConstructionText>15224</DuringConstructionText>
          <DuringIncidentHeadline>3781</DuringIncidentHeadline>
          <ActionButtonText>3690</ActionButtonText>
          <DuringIncidentHeadlineIcon>501922</DuringIncidentHeadlineIcon>
          <ProductivityForAdvancedOperation>1</ProductivityForAdvancedOperation>
        </IncidentResolver>
        <Maintenance>
          <Maintenances>
            <Item>
              <Product>1010017</Product>
              <Amount>350</Amount>
              <InactiveAmount>175</InactiveAmount>
            </Item>
          </Maintenances>
        </Maintenance>
        <Attackable>
          <AttackableType>IslandBuilding</AttackableType>
          <MaximumHitPoints>5500</MaximumHitPoints>
          <SelfHealPerHealTick>4</SelfHealPerHealTick>
        </Attackable>
        <Pausable>
          <IsHaciendaDependent>1</IsHaciendaDependent>
        </Pausable>
        <IncidentInfluencer>
          <Influence>
            <Illness>
              <Influence>-25</Influence>
              <Distance>35</Distance>
            </Illness>
          </Influence>
        </IncidentInfluencer>
        <DelayedConstruction />
        <AmbientMoodProvider>
          <AmbientMood>ResidenceTier1</AmbientMood>
        </AmbientMoodProvider>
        <Culture />
        <QuestObject />
        <Upgradable>
          <CurrentTier>1</CurrentTier>
        </Upgradable>
        <FactoryBase>
          <FactoryInputs>
            <Item>
              <Product>5397</Product>
              <Amount>1</Amount>
              <StorageAmount>4</StorageAmount>
            </Item>
          </FactoryInputs>
          <CycleTime>360</CycleTime>
          <ClampMaxTransporterLogisticCost>1</ClampMaxTransporterLogisticCost>
          <ClampedMaxTransporterLogisticCost>150</ClampedMaxTransporterLogisticCost>
        </FactoryBase>
        <Factory7 />
        <LogisticNode />
        <BuffFactory>
          <ProvidesPublicServiceNeed>1</ProvidesPublicServiceNeed>
          <PublicServiceData>
            <PublicServices>
              <Item>
                <PublicService>6263</PublicService>
              </Item>
            </PublicServices>
            <FullSatisfactionDistance>35</FullSatisfactionDistance>
          </PublicServiceData>
        </BuffFactory>
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="190777,368" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002100</GUID>
    </Item>
    <Item>
      <GUID>1999002147</GUID>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="7303" Path="/Values/ProductionChain/Tier1">
    <Item>
      <Building>1999002147</Building>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="25178">
    <Asset>
      <Template>ConstructionCategory</Template>
      <Values>
        <Standard>
          <GUID>1999002099</GUID>
          <Name>Hacienda Construction Menu FeuerwehrPoliceHospital</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_services_3.png</IconFilename>
        </Standard>
        <ConstructionCategory>
          <BuildingList>
            <Item>
              <Building>1999002098</Building>
            </Item>
            <Item>
              <Building>1999002075</Building>
            </Item>
            <Item>
              <Building>1999002100</Building>
            </Item>
            <Item>
              <Building>1999002146</Building>
            </Item>
            <Item>
              <Building>1999002145</Building>
            </Item>
            <Item>
              <Building>1999002147</Building>
            </Item>
          </BuildingList>
          <CategoryDescription>1999002109</CategoryDescription>
        </ConstructionCategory>
        <Text>
          <LocaText>
            <English>
              <Text>Hacienda</Text>
              <Status>Exported</Status>
              <ExportCount>1</ExportCount>
            </English>
          </LocaText>
          <LineID>27185</LineID>
        </Text>
        <Locked />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="1999002020,1999002070" Condition="@1999002020" Path="/Values/ConstructionCategory/BuildingList/Item[Building='24792']">
    <Item>
      <Building>1999002099</Building>
    </Item>
  </ModOp>
  <!-- #Trade union -->
  <ModOp Type="addNextSibling" GUID="101284">
    <Asset>
      <BaseAssetGUID>101284</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002076</GUID>
          <Name>guild_house_colony01 Hacienda</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_guildhouse.png</IconFilename>
        </Standard>
        <Building>
          <SecondPartyRelevant>0</SecondPartyRelevant>
        </Building>
        <Blocking />
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>5000</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>25</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>15</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Object>
          <Variations>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Filename>data/modgraphics/hacienda_expanded/guild_house/hacienda_guildhouse.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Mesh />
        <Selection>
          <OnSelection>
            <IsBaseAutoCreateAsset>1</IsBaseAutoCreateAsset>
            <Values>
              <ActionList />
            </Values>
          </OnSelection>
        </Selection>
        <Text>
          <LineID>8503</LineID>
        </Text>
        <Constructable />
        <Locked />
        <SoundEmitter />
        <FeedbackController />
        <Infolayer />
        <ItemContainer>
          <SocketScopeRadius>20</SocketScopeRadius>
          <UnsocketSound>247106</UnsocketSound>
        </ItemContainer>
        <UpgradeList />
        <Attackable />
        <Pausable>
          <IsHaciendaDependent>1</IsHaciendaDependent>
        </Pausable>
        <Maintenance>
          <Maintenances>
            <Item>
              <Product>1010017</Product>
              <Amount>150</Amount>
              <InactiveAmount>75</InactiveAmount>
            </Item>
            <Item>
              <Product>1010367</Product>
              <Amount>50</Amount>
              <InactiveAmount>25</InactiveAmount>
            </Item>
          </Maintenances>
        </Maintenance>
        <IncidentInfluencer />
        <Culture />
        <StorageBase />
        <Warehouse />
        <LogisticNode />
        <Distribution />
        <InfluenceSource />
        <BuildingUnique />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="replace" GUID="1999002076" Path="/Values/ItemContainer/SocketScopeRadius" ModOpID="HaciendaGuildHouseRadius" Skip="1">
    <SocketScopeRadius>20</SocketScopeRadius>
  </ModOp>
  <ImyaTweaks Title="Features of Hacienda Overhaul: Extendend Hacienda" Description="Adjust the features of the module, concerning values of the newly added buildings 'Hacienda Guildhouse' and 'Hacienda Townhaul'." Icon="data/ui/2kimages/main/3dicons/hacienda/icon_hacienda_modules.png" />
  <ImyaExpose Path="self::SocketScopeRadius" ModOpID="HaciendaGuildHouseRadius" ExposeID="Hacienda Guildhouse: Radius" Description="This value sets the raidus of the Hacienda Guild House [in tiles]" Kind="Enum">
    <FixedValues>
      <Value>10</Value>
      <Value>15</Value>
      <Value>20</Value>
      <Value>25</Value>
    </FixedValues>
  </ImyaExpose>
  <ModOp Type="replace" GUID="1999002076" Path="/Values/Maintenance/Maintenances/Item[2]" ModOpID="HaciendaGuildHouseMaintanence" Skip="1">
    <Item>
      <Product>1010367</Product>
      <Amount>50</Amount>
    </Item>
  </ModOp>
  <ImyaExpose Path="self::Item/Amount" ModOpID="HaciendaGuildHouseMaintanence" ExposeID="Hacienda Guildhouse: Workforce Amount" />
  <ImyaExpose Path="self::Item/Product" ModOpID="HaciendaGuildHouseMaintanence" ExposeID="Hacienda Guildhouse: Workforce Type" Description="These values set the amount and type of workforce which is used as maintanence for the Hacienda Guild House [0 - None, 1010366 - Jornaleros, 1010367 - Obreros, 5406 - Artistas]" Kind="Enum">
    <FixedValues>
      <Value>0</Value>
      <Value>1010366</Value>
      <Value>1010367</Value>
      <Value>5406</Value>
    </FixedValues>
  </ImyaExpose>
  <ModOp Type="add" GUID="193990,368" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002076</GUID>
    </Item>
  </ModOp>
  <!-- Mercier plus rep, if tradeunion is built-->
  <ModOp Type="add" GUID="219" Path="/Values/ParticipantMessages/MessageTriggers/BuildingBuilt/Reactions">
    <Item>
      <MyRole>ObserverToInitiator</MyRole>
      <RequiredDiplomacyState>Peace;TradeRights;Alliance;CeaseFire;NonAttack</RequiredDiplomacyState>
      <RequiredContextAsset>1999002076</RequiredContextAsset>
      <CooldownTime>10800000</CooldownTime>
      <SideEffect>AddReputation</SideEffect>
      <SideEffectValue>1</SideEffectValue>
      <Notification>
        <Template>CharacterNotification</Template>
        <Values>
          <CharacterNotification />
          <BaseNotification>
            <NotificationText>111636</NotificationText>
          </BaseNotification>
          <NotificationSubtitle>
            <SubtitleGroup>1628524748</SubtitleGroup>
          </NotificationSubtitle>
        </Values>
      </Notification>
      <ReputationLogEntry>111618</ReputationLogEntry>
      <NotificationFilter>Diplomacy</NotificationFilter>
    </Item>
  </ModOp>
  <!-- #Hacienda Small Market Places -> geben Hacienda Public Service -->
  <ModOp Type="addNextSibling" GUID="101257">
    <Asset>
      <BaseAssetGUID>101257</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002078</GUID>
          <Name>service_colony01_01 ( Small Hacienda Marketplaces)</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_market.png</IconFilename>
          <ID>MarketplaceColony01</ID>
        </Standard>
        <Text>
          <LineID>8497</LineID>
        </Text>
        <Blocking />
        <Building>
          <AllowChangeVariation>1</AllowChangeVariation>
          <SecondPartyRelevant>0</SecondPartyRelevant>
        </Building>
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Market</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>250</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Market</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>1</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Market</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Market</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Market</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Market</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Selection />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/small_market/market_01.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/small_market/market_02.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/small_market/market_03.cfg</Filename>
            </Item>
          </Variations>
          <Skins>
            <SkinList />
          </Skins>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked />
        <Infolayer />
        <FeedbackController />
        <UpgradeList />
        <AmbientMoodProvider />
        <Maintenance />
        <Market />
        <StorageBase />
        <Attackable />
        <Pausable>
          <IsHaciendaDependent>1</IsHaciendaDependent>
        </Pausable>
        <IncidentInfectable />
        <LogisticNode />
        <PublicService>
          <FullSatisfactionDistance>12</FullSatisfactionDistance>
          <NoSatisfactionDistance>17</NoSatisfactionDistance>
          <PublicServiceOutputs>
            <Item>
              <Product>25546</Product>
            </Item>
          </PublicServiceOutputs>
        </PublicService>
        <Culture />
        <StreetActivation />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="191501,191540,368" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002078</GUID>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="1999002020,1999002070" Condition="@1999002020" Path="/Values/ConstructionCategory/BuildingList/Item[Building='24768']">
    <Item>
      <Building>1999002078</Building>
    </Item>
  </ModOp>
  <!-- #Hacienda Outer Wall -->
  <ModOp Type="addNextSibling" GUID="25194">
    <Asset>
      <Template>OrnamentalBuilding</Template>
      <Values>
        <Standard>
          <GUID>1999002077</GUID>
          <Name>Hacienda Ornamental BorderFenceSystem</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_border_fence_6_cycle.png</IconFilename>
        </Standard>
        <Text>
          <LocaText>
            <English>
              <Text>Hacienda Wall</Text>
              <Status>Exported</Status>
              <ExportCount>1</ExportCount>
            </English>
          </LocaText>
          <LineID>55235</LineID>
        </Text>
        <Blocking />
        <Building>
          <BuildingCategoryName>11149</BuildingCategoryName>
          <InfluencedByNeighbors>
            <Item>
              <Building>1999002077</Building>
            </Item>
            <Item>
              <Building>1999002081</Building>
            </Item>
            <Item>
              <Building>1999002082</Building>
            </Item>
          </InfluencedByNeighbors>
          <InfluencedVariationDirection>
            <Item>
              <Direction>0</Direction>
              <Type>Mid</Type>
            </Item>
            <Item>
              <Direction>2</Direction>
              <Type>TCrossing</Type>
            </Item>
            <Item>
              <Direction>1</Direction>
              <Type>End</Type>
            </Item>
            <Item>
              <Direction>0</Direction>
              <Type>Corner</Type>
            </Item>
            <Item>
              <Direction>2</Direction>
              <Type>End</Type>
            </Item>
            <Item>
              <Direction>2</Direction>
              <Type>Mid</Type>
            </Item>
            <Item>
              <Direction>1</Direction>
              <Type>Corner</Type>
            </Item>
            <Item>
              <Direction>0</Direction>
              <Type>Mid</Type>
            </Item>
            <Item>
              <Direction>1</Direction>
              <Type>TCrossing</Type>
            </Item>
            <Item>
              <Direction>3</Direction>
              <Type>Corner</Type>
            </Item>
            <Item>
              <Direction>1</Direction>
              <Type>Mid</Type>
            </Item>
            <Item>
              <Direction>3</Direction>
              <Type>Mid</Type>
            </Item>
            <Item>
              <Direction>2</Direction>
              <Type>Corner</Type>
            </Item>
            <Item>
              <Direction>2</Direction>
              <Type>Mid</Type>
            </Item>
            <Item>
              <Direction>1</Direction>
              <Type>Mid</Type>
            </Item>
            <Item>
              <Type>Crossing</Type>
            </Item>
          </InfluencedVariationDirection>
          <AssociatedRegions>Colony01</AssociatedRegions>
          <BuildingBlockPool>
            <DontCare>
              <Pool>
                <Item />
              </Pool>
            </DontCare>
            <Corner>
              <Pool>
                <Item>
                  <DirectionOffet>0</DirectionOffet>
                  <Variation>4</Variation>
                </Item>
              </Pool>
            </Corner>
            <Mid>
              <Pool>
                <Item />
                <Item>
                  <DirectionOffet>0</DirectionOffet>
                  <Variation>1</Variation>
                </Item>
              </Pool>
            </Mid>
            <TCrossing>
              <Pool>
                <Item>
                  <DirectionOffet>0</DirectionOffet>
                  <Variation>3</Variation>
                </Item>
              </Pool>
            </TCrossing>
            <Crossing>
              <Pool>
                <Item>
                  <DirectionOffet>0</DirectionOffet>
                  <Variation>5</Variation>
                </Item>
              </Pool>
            </Crossing>
            <End>
              <Pool>
                <Item>
                  <DirectionOffet>0</DirectionOffet>
                  <Variation>2</Variation>
                </Item>
              </Pool>
            </End>
          </BuildingBlockPool>
          <SecondPartyRelevant>0</SecondPartyRelevant>
          <VariationIcons>
            <Item>
              <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_fence_1.png</IconFilename>
            </Item>
            <Item>
              <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_fence_7.png</IconFilename>
            </Item>
            <Item>
              <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_fence_2.png</IconFilename>
            </Item>
            <Item>
              <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_fence_2.png</IconFilename>
            </Item>
            <Item>
              <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_fence_3.png</IconFilename>
            </Item>
            <Item>
              <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_courtyard_2.png</IconFilename>
            </Item>
          </VariationIcons>
        </Building>
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>OrnamentalBuilding</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>75</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>OrnamentalBuilding</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>OrnamentalBuilding</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>OrnamentalBuilding</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>OrnamentalBuilding</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>OrnamentalBuilding</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Selection>
          <OnSelection>
            <IsBaseAutoCreateAsset>1</IsBaseAutoCreateAsset>
            <Values>
              <ActionList />
            </Values>
          </OnSelection>
        </Selection>
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_straight_01.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_straight_02.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_corner_inwards_02.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_corner_inwards_01.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_corner_01.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/buildings/ornaments/hacienda/hacienda_ornaments_floor_1x1_01.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked>
          <DLCDependency>24961</DLCDependency>
        </Locked>
        <FeedbackController>
          <NightBehavior>HideNone</NightBehavior>
        </FeedbackController>
        <Ornament>
          <PlazzaSize>1</PlazzaSize>
          <OrnamentUnit>13</OrnamentUnit>
          <OrnamentDescription>25185</OrnamentDescription>
        </Ornament>
        <AmbientMoodProvider />
        <Pausable />
        <Infolayer />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="25177" Path="/Values/AssetPool/AssetList">
    <Item>
      <Asset>1999002077</Asset>
    </Item>
  </ModOp>
  <!-- Hacienda Outer Wall modular -->
  <!-- Hacienda Gate Outer Wall Large -->
  <ModOp Type="addNextSibling" GUID="25168">
    <Asset>
      <BaseAssetGUID>25168</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002081</GUID>
          <Name>Hacienda Outer Wall Gate Large</Name>
          <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_gate_large.png</IconFilename>
        </Standard>
        <Text />
        <Blocking />
        <Building />
        <Cost />
        <Selection />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/gate_large_01.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked />
        <FeedbackController />
        <Ornament />
        <AmbientMoodProvider />
        <Pausable />
        <Infolayer />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <!-- Hacienda Gate Outer Wall Small -->
  <ModOp Type="addNextSibling" GUID="25168">
    <Asset>
      <BaseAssetGUID>25168</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002082</GUID>
          <Name>Hacienda Outer Wall Gate Small</Name>
          <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_small_gate.png</IconFilename>
        </Standard>
        <Text />
        <Blocking />
        <Building />
        <Cost />
        <Selection />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/gate_small_01.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked />
        <FeedbackController />
        <Ornament />
        <AmbientMoodProvider />
        <Pausable />
        <Infolayer />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="25703">
    <Asset>
      <BaseAssetGUID>25703</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002083</GUID>
          <Name>Hacienda Border Wall Straight 01</Name>
          <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_fence_1.png</IconFilename>
        </Standard>
        <Text />
        <Blocking />
        <Building />
        <Cost />
        <Selection />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_straight_01.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked />
        <FeedbackController />
        <Ornament />
        <AmbientMoodProvider />
        <Pausable />
        <Infolayer />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="25703">
    <Asset>
      <BaseAssetGUID>25703</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002084</GUID>
          <Name>Hacienda Border Wall Straight 02</Name>
          <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_fence_7.png</IconFilename>
        </Standard>
        <Text />
        <Blocking />
        <Building />
        <Cost />
        <Selection />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_straight_02.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked />
        <FeedbackController />
        <Ornament />
        <AmbientMoodProvider />
        <Pausable />
        <Infolayer />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="25703">
    <Asset>
      <BaseAssetGUID>25703</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002085</GUID>
          <Name>Hacienda Border Wall Corner 01</Name>
          <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_fence_3.png</IconFilename>
        </Standard>
        <Text />
        <Blocking />
        <Building />
        <Cost />
        <Selection />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_corner_01.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked />
        <FeedbackController />
        <Ornament />
        <AmbientMoodProvider />
        <Pausable />
        <Infolayer />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="25703">
    <Asset>
      <BaseAssetGUID>25703</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002086</GUID>
          <Name>Hacienda Border Wall Corner End 01</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_border_fence_corner_end.png</IconFilename>
        </Standard>
        <Text />
        <Blocking />
        <Building />
        <Cost />
        <Selection />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_corner_end_01.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked />
        <FeedbackController />
        <Ornament />
        <AmbientMoodProvider />
        <Pausable />
        <Infolayer />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="25703">
    <Asset>
      <BaseAssetGUID>25703</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002087</GUID>
          <Name>Hacienda Border Wall Corner Inwards 01</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_border_fence_corner_inwards_01.png</IconFilename>
        </Standard>
        <Text />
        <Blocking />
        <Building />
        <Cost />
        <Selection />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_corner_inwards_01.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked />
        <FeedbackController />
        <Ornament />
        <AmbientMoodProvider />
        <Pausable />
        <Infolayer />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="25703">
    <Asset>
      <BaseAssetGUID>25703</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002088</GUID>
          <Name>Hacienda Border Wall Corner Inwards 02</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_border_fence_corner_inwards_01.png</IconFilename>
        </Standard>
        <Text />
        <Blocking />
        <Building />
        <Cost />
        <Selection />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_corner_inwards_02.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked />
        <FeedbackController />
        <Ornament />
        <AmbientMoodProvider />
        <Pausable />
        <Infolayer />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="25703">
    <Asset>
      <BaseAssetGUID>25703</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002089</GUID>
          <Name>Hacienda Border Wall Corner T 01</Name>
          <IconFilename>data/ui/2kimages/main/3dicons/ornaments/hacienda/icon_hacienda_fence_5.png</IconFilename>
        </Standard>
        <Text />
        <Blocking />
        <Building />
        <Cost />
        <Selection />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/border_wall/wall_t_01.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Constructable />
        <Mesh />
        <SoundEmitter />
        <Locked />
        <FeedbackController />
        <Ornament />
        <AmbientMoodProvider />
        <Pausable />
        <Infolayer />
        <Culture />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="25177" Path="/Values/AssetPool/AssetList">
    <Item>
      <Asset>1999002081</Asset>
    </Item>
    <Item>
      <Asset>1999002082</Asset>
    </Item>
    <Item>
      <Asset>1999002083</Asset>
    </Item>
    <Item>
      <Asset>1999002084</Asset>
    </Item>
    <Item>
      <Asset>1999002085</Asset>
    </Item>
    <Item>
      <Asset>1999002086</Asset>
    </Item>
    <Item>
      <Asset>1999002087</Asset>
    </Item>
    <Item>
      <Asset>1999002088</Asset>
    </Item>
    <Item>
      <Asset>1999002089</Asset>
    </Item>
  </ModOp>
  <!-- Construction Menu Hacienda Border Wall Single ornaments -->
  <ModOp Type="addNextSibling" GUID="25178">
    <Asset>
      <Template>ConstructionCategory</Template>
      <Values>
        <Standard>
          <GUID>1999002090</GUID>
          <Name>Hacienda Construction Menu Ornaments Border Wall</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_border_fence_6.png</IconFilename>
        </Standard>
        <ConstructionCategory>
          <BuildingList>
            <Item>
              <Building>1999002081</Building>
            </Item>
            <Item>
              <Building>1999002082</Building>
            </Item>
            <Item>
              <Building>1999002083</Building>
            </Item>
            <Item>
              <Building>1999002084</Building>
            </Item>
            <Item>
              <Building>1999002085</Building>
            </Item>
            <Item>
              <Building>1999002086</Building>
            </Item>
            <Item>
              <Building>1999002087</Building>
            </Item>
            <Item>
              <Building>1999002088</Building>
            </Item>
            <Item>
              <Building>1999002089</Building>
            </Item>
          </BuildingList>
          <CategoryDescription>1999002107</CategoryDescription>
        </ConstructionCategory>
        <Text>
          <LocaText>
            <English>
              <Text>Hacienda</Text>
              <Status>Exported</Status>
              <ExportCount>1</ExportCount>
            </English>
          </LocaText>
          <LineID>27185</LineID>
        </Text>
        <Locked />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="6410" Path="/Values/ConstructionCategory/BuildingList/Item[Building='25194']">
    <Item>
      <Building>1999002077</Building>
    </Item>
    <Item>
      <Building>1999002083</Building>
    </Item>
    <Item>
      <Building>1999002084</Building>
    </Item>
    <Item>
      <Building>1999002085</Building>
    </Item>
    <Item>
      <Building>1999002086</Building>
    </Item>
    <Item>
      <Building>1999002087</Building>
    </Item>
    <Item>
      <Building>1999002088</Building>
    </Item>
    <Item>
      <Building>1999002089</Building>
    </Item>
    <Item>
      <Building>1999002081</Building>
    </Item>
    <Item>
      <Building>1999002082</Building>
    </Item>
  </ModOp>
  <!-- #Trigger all new buildings and wall ornament buildings with 1 Obrero -->
  <ModOp Type="addNextSibling" GUID="130248">
    <Asset>
      <Template>Trigger</Template>
      <Values>
        <Standard>
          <GUID>1999002079</GUID>
          <Name>Hacienda Extra Buildings Lordys</Name>
        </Standard>
        <Trigger>
          <TriggerCondition>
            <Template>ConditionPlayerCounter</Template>
            <Values>
              <Condition />
              <ConditionPlayerCounter>
                <PlayerCounter>PopulationByLevel</PlayerCounter>
                <Context>15000006</Context>
                <CounterAmount>1</CounterAmount>
              </ConditionPlayerCounter>
            </Values>
          </TriggerCondition>
          <TriggerActions>
            <Item>
              <TriggerAction>
                <Template>ActionUnlockAsset</Template>
                <Values>
                  <Action />
                  <ActionUnlockAsset>
                    <UnhideAssets>
                      <Item>
                        <Asset>1999002074</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002075</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002076</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002077</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002078</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002080</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002081</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002082</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002083</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002084</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002085</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002086</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002087</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002088</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002089</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002090</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002098</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002099</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002100</Asset>
                      </Item>
                    </UnhideAssets>
                  </ActionUnlockAsset>
                </Values>
              </TriggerAction>
            </Item>
            <Item>
              <TriggerAction>
                <Template>ActionUnlockAsset</Template>
                <Values>
                  <Action />
                  <ActionUnlockAsset>
                    <UnlockAssets>
                      <Item>
                        <Asset>1999002074</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002075</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002076</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002077</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002078</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002080</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002081</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002082</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002083</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002084</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002085</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002086</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002087</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002088</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002089</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002090</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002098</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002099</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002100</Asset>
                      </Item>
                    </UnlockAssets>
                  </ActionUnlockAsset>
                </Values>
              </TriggerAction>
            </Item>
          </TriggerActions>
        </Trigger>
        <TriggerSetup />
      </Values>
    </Asset>
    <Asset>
      <Template>Trigger</Template>
      <Values>
        <Standard>
          <GUID>1999002158</GUID>
          <Name>Hacienda Extra Buildings Lordys Creative Mode</Name>
        </Standard>
        <Trigger>
          <TriggerCondition>
            <Template>ConditionIsCreativeMode</Template>
            <Values>
              <Condition />
              <ConditionIsCreativeMode />
            </Values>
          </TriggerCondition>
          <TriggerActions>
            <Item>
              <TriggerAction>
                <Template>ActionUnlockAsset</Template>
                <Values>
                  <Action />
                  <ActionUnlockAsset>
                    <UnlockAssets>
                      <Item>
                        <Asset>1999002074</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002075</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002076</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002077</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002078</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002080</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002081</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002082</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002083</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002084</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002085</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002086</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002087</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002088</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002089</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002090</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002098</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002099</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002100</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002091</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002092</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002093</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002104</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002103</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002139</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002145</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002146</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002147</Asset>
                      </Item>
                    </UnlockAssets>
                  </ActionUnlockAsset>
                </Values>
              </TriggerAction>
            </Item>
          </TriggerActions>
        </Trigger>
        <TriggerSetup />
      </Values>
    </Asset>
  </ModOp>
  <!-- #Lordys neue Häuser integrieren -->
  <!-- Jornalero Häuser 2x3 -->
  <ModOp Type="addNextSibling" GUID="24792">
    <Asset>
      <BaseAssetGUID>24792</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002091</GUID>
          <Name>Hacienda residence module tier01 2x3</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_house_2x3.png</IconFilename>
          <InfoDescription>163059</InfoDescription>
        </Standard>
        <Blocking />
        <Building />
        <Cost />
        <Mesh />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/residence/hacienda_3x2_houses_tier_01_01.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/residence/hacienda_3x2_houses_tier_01_02.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/residence/hacienda_3x2_houses_tier_01_03.cfg</Filename>
            </Item>
          </Variations>
          <DefaultParticipant>SA_Resident_tier01</DefaultParticipant>
        </Object>
        <Selection />
        <Text />
        <Constructable />
        <Locked />
        <Upgradable>
          <NextGUID>1999002092</NextGUID>
          <UpgradeCost>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>2</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>4</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </UpgradeCost>
        </Upgradable>
        <SoundEmitter />
        <Infolayer />
        <FeedbackController />
        <Residence7>
          <PopulationLevel7>15000005</PopulationLevel7>
          <ResidentMax>24</ResidentMax>
          <ResidentsRequiredForUpgrade>8</ResidentsRequiredForUpgrade>
        </Residence7>
        <LogisticNode />
        <AmbientMoodProvider />
        <UpgradeList>
          <DefaultBuff>1999002095</DefaultBuff>
        </UpgradeList>
        <Attackable />
        <IncidentInfectable />
        <Pausable />
        <Culture />
        <StreetActivation />
        <InfluenceSource />
      </Values>
    </Asset>
  </ModOp>
  <!-- Anpassung der Verbrauchsgüter auf 8 Pop und neues Haus -->
  <ModOp Type="add" GUID="15000005" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='25546']/RequiredBuildings">
    <Item>
      <RequiredBuilding>1999002091</RequiredBuilding>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="15000005" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='1010216']/RequiredBuildings">
    <Item>
      <RequiredBuilding>1999002091</RequiredBuilding>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="15000005" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='25506']/RequiredBuildings">
    <Item>
      <RequiredBuilding>1999002091</RequiredBuilding>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="25742">
    <Asset>
      <Template>TownhallBuff</Template>
      <Values>
        <Standard>
          <GUID>1999002095</GUID>
          <Name>HacienadaModulePopBuff_Civ1 2x3 residences</Name>
        </Standard>
        <ItemEffect>
          <EffectTargets>
            <Item>
              <GUID>1999002091</GUID>
            </Item>
          </EffectTargets>
        </ItemEffect>
        <Text />
        <BuildingUpgrade />
        <Buff />
        <PopulationUpgrade>
          <InputBenefitModifier>
            <Item>
              <Product>25546</Product>
              <AdditionalSupply>-4</AdditionalSupply>
            </Item>
            <Item>
              <Product>120033</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>120043</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>1010216</Product>
              <AdditionalSupply>-3</AdditionalSupply>
            </Item>
            <Item>
              <Product>25506</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>536</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>2524</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>6265</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>5830</Product>
              <AdditionalSupply>0</AdditionalSupply>
            </Item>
          </InputBenefitModifier>
        </PopulationUpgrade>
        <ResidenceUpgrade />
        <IncidentInfectableUpgrade />
        <CultureUpgrade>
          <HideBuff>1</HideBuff>
        </CultureUpgrade>
        <InfluenceSourceUpgrade />
        <WarehouseUpgrade />
        <DistributionUpgrade />
        <ItemContainerUpgrade />
        <FactoryUpgrade />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="130118,25055,144201,25672" Path="/Values/AssetPool/AssetList">
    <Item>
      <Asset>1999002091</Asset>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="142785,2001013" Path="/Values/FeedbackBuildingGroup/Buildings">
    <Item>
      <Building>1999002091</Building>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="193957,190762,25674,25677,26029" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002091</GUID>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="25623,191132" Path="/Values/ItemEffect/EffectTargets">
    <Item>
      <GUID>1999002091</GUID>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="24768" Path="/Values/ModuleOwner/ConstructionOptions/Item[ModuleGUID='24792']">
    <Item>
      <ModuleGUID>1999002091</ModuleGUID>
    </Item>
  </ModOp>
  <!-- Obrero Häuser 2x3 -->
  <ModOp Type="addNextSibling" GUID="24793">
    <Asset>
      <BaseAssetGUID>24793</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002092</GUID>
          <Name>Hacienda residence module tier02 2x3</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_house_2x3.png</IconFilename>
          <InfoDescription>163059</InfoDescription>
        </Standard>
        <Blocking />
        <Building>
          <PickingAsset>1999002091</PickingAsset>
        </Building>
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>3</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>4</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Mesh />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/residence/hacienda_3x2_houses_tier_02_01.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/residence/hacienda_3x2_houses_tier_02_02.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/residence/hacienda_3x2_houses_tier_02_03.cfg</Filename>
            </Item>
          </Variations>
          <DefaultParticipant>SA_Resident_tier02</DefaultParticipant>
        </Object>
        <Selection />
        <Text />
        <Constructable />
        <Locked />
        <Upgradable>
          <NextGUID>1999002139</NextGUID>
          <UpgradeCost>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>5</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>8</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>3</Amount>
              <Ingredient>838</Ingredient>
            </Item>
          </UpgradeCost>
        </Upgradable>
        <SoundEmitter />
        <Infolayer />
        <FeedbackController />
        <Residence7>
          <PopulationLevel7>15000006</PopulationLevel7>
          <ResidentMax>44</ResidentMax>
          <ResidentsRequiredForUpgrade>16</ResidentsRequiredForUpgrade>
        </Residence7>
        <LogisticNode />
        <AmbientMoodProvider />
        <UpgradeList>
          <DefaultBuff>1999002096</DefaultBuff>
        </UpgradeList>
        <Attackable />
        <IncidentInfectable />
        <Pausable />
        <Culture />
        <StreetActivation />
        <InfluenceSource />
      </Values>
    </Asset>
  </ModOp>
  <!-- Anpassung der Verbrauchsgüter auf 16 Pop und neues Haus -->
  <ModOp Type="add" GUID="15000006" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='25546']/RequiredBuildings">
    <Item>
      <RequiredBuilding>1999002092</RequiredBuilding>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="15000006" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='25506']/RequiredBuildings">
    <Item>
      <RequiredBuilding>1999002092</RequiredBuilding>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="15000006" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='25131']/RequiredBuildings">
    <Item>
      <RequiredBuilding>1999002092</RequiredBuilding>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="25742">
    <Asset>
      <Template>TownhallBuff</Template>
      <Values>
        <Standard>
          <GUID>1999002096</GUID>
          <Name>HacienadaModulePopBuff_Civ2 2x3 residences</Name>
        </Standard>
        <ItemEffect>
          <EffectTargets>
            <Item>
              <GUID>1999002092</GUID>
            </Item>
          </EffectTargets>
        </ItemEffect>
        <Text />
        <BuildingUpgrade />
        <Buff />
        <PopulationUpgrade>
          <InputBenefitModifier>
            <Item>
              <Product>25546</Product>
              <AdditionalSupply>-4</AdditionalSupply>
            </Item>
            <Item>
              <Product>25506</Product>
              <AdditionalSupply>-3</AdditionalSupply>
            </Item>
            <Item>
              <Product>120033</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>120043</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>120035</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>25131</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>120032</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>120037</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>535</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>536</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>2524</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>5391</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
          </InputBenefitModifier>
        </PopulationUpgrade>
        <ResidenceUpgrade />
        <IncidentInfectableUpgrade />
        <CultureUpgrade>
          <HideBuff>1</HideBuff>
        </CultureUpgrade>
        <InfluenceSourceUpgrade />
        <WarehouseUpgrade />
        <DistributionUpgrade />
        <ItemContainerUpgrade />
        <FactoryUpgrade />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="130118,25055,144202,25672" Path="/Values/AssetPool/AssetList">
    <Item>
      <Asset>1999002092</Asset>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="142785,2001089" Path="/Values/FeedbackBuildingGroup/Buildings">
    <Item>
      <Building>1999002092</Building>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="193957,190762,192446,25674,25677,26030" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002092</GUID>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="25624,25661,191135" Path="/Values/ItemEffect/EffectTargets">
    <Item>
      <GUID>1999002092</GUID>
    </Item>
  </ModOp>
  <!-- Artista 2x3 residences -->
  <ModOp Type="addNextSibling" GUID="6086">
    <Asset>
      <BaseAssetGUID>6086</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002139</GUID>
          <Name>Hacienda residence module tier03 2x3</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_house_2x3.png</IconFilename>
          <InfoDescription>163059</InfoDescription>
        </Standard>
        <Blocking />
        <Building>
          <PickingAsset>1999002091</PickingAsset>
        </Building>
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>8</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>12</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>3</Amount>
              <Ingredient>838</Ingredient>
            </Item>
          </Costs>
        </Cost>
        <Mesh />
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/residence/hacienda_3x2_houses_tier_03_01.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/residence/hacienda_3x2_houses_tier_03_02.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/residence/hacienda_3x2_houses_tier_03_03.cfg</Filename>
            </Item>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/residence/hacienda_3x2_houses_tier_03_04.cfg</Filename>
            </Item>
          </Variations>
          <DefaultParticipant>SA_Resident_tier03</DefaultParticipant>
        </Object>
        <Selection />
        <Text />
        <Constructable />
        <Locked />
        <Upgradable />
        <SoundEmitter />
        <Infolayer />
        <FeedbackController />
        <Residence7>
          <PopulationLevel7>5403</PopulationLevel7>
          <ResidentsRequiredForUpgrade>30</ResidentsRequiredForUpgrade>
          <ResidentMax>68</ResidentMax>
        </Residence7>
        <LogisticNode />
        <AmbientMoodProvider />
        <UpgradeList>
          <DefaultBuff>1999002140</DefaultBuff>
        </UpgradeList>
        <Attackable />
        <IncidentInfectable />
        <Pausable />
        <Culture />
        <StreetActivation />
        <InfluenceSource />
      </Values>
    </Asset>
  </ModOp>
  <!-- Anpassung der Verbrauchsgüter auf 68 Pop und neues Haus -->
  <ModOp Type="add" GUID="5403" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='120030']/RequiredBuildings">
    <Item>
      <RequiredBuilding>1999002139</RequiredBuilding>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="5403" Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='1010354']/RequiredBuildings">
    <Item>
      <RequiredBuilding>1999002139</RequiredBuilding>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="6088">
    <Asset>
      <Template>TownhallBuff</Template>
      <Values>
        <Standard>
          <GUID>1999002140</GUID>
          <Name>HacienadaModulePopBuff_Civ3 2x3 residences</Name>
        </Standard>
        <ItemEffect>
          <EffectTargets>
            <Item>
              <GUID>1999002139</GUID>
            </Item>
          </EffectTargets>
        </ItemEffect>
        <Text />
        <BuildingUpgrade />
        <Buff />
        <PopulationUpgrade>
          <InputBenefitModifier>
            <Item>
              <Product>120035</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>120032</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>120037</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>1010206</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>6600</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>5803</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>5381</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>5388</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>5395</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>5391</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>120030</Product>
              <AdditionalSupply>-18</AdditionalSupply>
            </Item>
            <Item>
              <Product>1010354</Product>
              <AdditionalSupply>-18</AdditionalSupply>
            </Item>
            <Item>
              <Product>535</Product>
              <AdditionalSupply>-1</AdditionalSupply>
            </Item>
            <Item>
              <Product>536</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
            <Item>
              <Product>2524</Product>
              <AdditionalSupply>-4</AdditionalSupply>
            </Item>
            <Item>
              <Product>1010250</Product>
              <AdditionalSupply>-2</AdditionalSupply>
            </Item>
          </InputBenefitModifier>
        </PopulationUpgrade>
        <ResidenceUpgrade />
        <IncidentInfectableUpgrade />
        <CultureUpgrade>
          <HideBuff>1</HideBuff>
        </CultureUpgrade>
        <InfluenceSourceUpgrade />
        <WarehouseUpgrade />
        <DistributionUpgrade />
        <ItemContainerUpgrade />
        <FactoryUpgrade />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="130118,25055,25672" Path="/Values/AssetPool/AssetList">
    <Item>
      <Asset>1999002139</Asset>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="142785,2001090" Path="/Values/FeedbackBuildingGroup/Buildings">
    <Item>
      <Building>1999002139</Building>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="193957,190762,25674,25677" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002139</GUID>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="1999002151" Condition="@1999002151" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002139</GUID>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="7728,25661,191135" Path="/Values/ItemEffect/EffectTargets">
    <Item>
      <GUID>1999002139</GUID>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="105127" Path="/Values/PlayerCounterContextPool/Contexts">
    <Item>
      <Asset>1999002139</Asset>
    </Item>
  </ModOp>
  <!-- Construction Menu Häuser normal und 2x3 -->
  <ModOp Type="addNextSibling" GUID="25178">
    <Asset>
      <Template>ConstructionCategory</Template>
      <Values>
        <Standard>
          <GUID>1999002093</GUID>
          <Name>Hacienda Construction Menu Houses including 2x3</Name>
          <IconFilename>data/modgraphics/ui/icon_hacienda_house.png</IconFilename>
        </Standard>
        <ConstructionCategory>
          <BuildingList>
            <Item>
              <Building>24792</Building>
            </Item>
            <Item>
              <Building>1999002091</Building>
            </Item>
          </BuildingList>
          <CategoryDescription>1999002108</CategoryDescription>
        </ConstructionCategory>
        <Text>
          <LocaText>
            <English>
              <Text>Hacienda</Text>
              <Status>Exported</Status>
              <ExportCount>1</ExportCount>
            </English>
          </LocaText>
          <LineID>27185</LineID>
        </Text>
        <Locked />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="replace" GUID="1999002020,1999002070" Condition="@1999002020" Path="/Values/ConstructionCategory/BuildingList/Item[Building='24792']">
    <Item>
      <Building>1999002093</Building>
    </Item>
  </ModOp>
  <!-- Add Obrero and Artista Residences, if you don't use "residences must be upgraded" and use "Extended Hacienda"-->
  <Group Condition="!@24793/Building[PickingAsset = '24792']">
    <ModOp Type="remove" GUID="1999002020,1999002070" Condition="@1999002020/ConstructionCategory/BuildingList/Item[Building = '24793']" Path="/Values/ConstructionCategory/BuildingList/Item[Building = '24793']">
    </ModOp>
    <ModOp Type="remove" GUID="1999002020,1999002070" Condition="@1999002020/ConstructionCategory/BuildingList/Item[Building = '6086']" Path="/Values/ConstructionCategory/BuildingList/Item[Building = '6086']">
    </ModOp>
    <ModOp Type="addNextSibling" GUID="1999002093" Condition="@1999002093" Path="/Values/ConstructionCategory/BuildingList/Item[Building = '24792']">
      <Item>
        <Building>24793</Building>
      </Item>
      <Item>
        <Building>6086</Building>
      </Item>
    </ModOp>
  </Group>
  <!-- Trigger all new buildings and wall ornament buildings with 1 Obrero -->
  <ModOp Type="addNextSibling" GUID="130248">
    <Asset>
      <Template>Trigger</Template>
      <Values>
        <Standard>
          <GUID>1999002094</GUID>
          <Name>Hacienda Extra 2x3 Houses Lordys</Name>
        </Standard>
        <Trigger>
          <TriggerCondition>
            <Template>ConditionPlayerCounter</Template>
            <Values>
              <Condition />
              <ConditionPlayerCounter>
                <PlayerCounter>PopulationByLevel</PlayerCounter>
                <Context>15000006</Context>
                <CounterAmount>1</CounterAmount>
              </ConditionPlayerCounter>
            </Values>
          </TriggerCondition>
          <TriggerActions>
            <Item>
              <TriggerAction>
                <Template>ActionUnlockAsset</Template>
                <Values>
                  <Action />
                  <ActionUnlockAsset>
                    <UnhideAssets>
                      <Item>
                        <Asset>1999002091</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002092</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002093</Asset>
                      </Item>
                    </UnhideAssets>
                  </ActionUnlockAsset>
                </Values>
              </TriggerAction>
            </Item>
            <Item>
              <TriggerAction>
                <Template>ActionUnlockAsset</Template>
                <Values>
                  <Action />
                  <ActionUnlockAsset>
                    <UnlockAssets>
                      <Item>
                        <Asset>1999002091</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002092</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002093</Asset>
                      </Item>
                    </UnlockAssets>
                  </ActionUnlockAsset>
                </Values>
              </TriggerAction>
            </Item>
          </TriggerActions>
        </Trigger>
        <TriggerSetup />
      </Values>
    </Asset>
  </ModOp>
  <!-- #Hacienda Town Hall hinzufügen -->
  <ModOp Type="addNextSibling" GUID="101285">
    <Asset>
      <BaseAssetGUID>101285</BaseAssetGUID>
      <Values>
        <Standard>
          <GUID>1999002103</GUID>
          <Name>town hall hacienda</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_town_hall.png</IconFilename>
        </Standard>
        <Building>
          <SecondPartyRelevant>0</SecondPartyRelevant>
        </Building>
        <Blocking />
        <Cost>
          <Costs>
            <Item>
              <VectorElement>
                <InheritedIndex>0</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>0</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>5000</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>1</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>1</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>25</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>2</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>2</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
              <Amount>15</Amount>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>3</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>3</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>4</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>4</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
            <Item>
              <VectorElement>
                <InheritedIndex>5</InheritedIndex>
                <InheritanceMapV2>
                  <Entry>
                    <TemplateName>Guildhouse</TemplateName>
                    <Index>5</Index>
                  </Entry>
                </InheritanceMapV2>
              </VectorElement>
            </Item>
          </Costs>
        </Cost>
        <Object>
          <Variations>
            <Item>
              <Filename>data/modgraphics/hacienda_expanded/town_hall/hacienda_town_hall.cfg</Filename>
            </Item>
          </Variations>
        </Object>
        <Mesh />
        <Selection />
        <Text>
          <LineID>8504</LineID>
        </Text>
        <Constructable />
        <Locked />
        <SoundEmitter />
        <FeedbackController />
        <Infolayer />
        <ItemContainer>
          <SocketScopeRadius>15</SocketScopeRadius>
          <UnsocketSound>247106</UnsocketSound>
        </ItemContainer>
        <UpgradeList />
        <Attackable />
        <Pausable>
          <IsHaciendaDependent>1</IsHaciendaDependent>
        </Pausable>
        <Maintenance>
          <Maintenances>
            <Item>
              <Product>1010017</Product>
              <Amount>150</Amount>
              <InactiveAmount>75</InactiveAmount>
            </Item>
            <Item>
              <Product>0</Product>
              <Amount>0</Amount>
              <InactiveAmount>0</InactiveAmount>
            </Item>
          </Maintenances>
        </Maintenance>
        <IncidentInfluencer />
        <Culture />
        <StorageBase />
        <Warehouse />
        <LogisticNode />
        <Distribution />
        <InfluenceSource />
        <BuildingUnique />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="replace" GUID="1999002103" Path="/Values/ItemContainer/SocketScopeRadius" ModOpID="HaciendaTownhallRadius" Skip="1">
    <SocketScopeRadius>15</SocketScopeRadius>
  </ModOp>
  <ImyaExpose Path="self::SocketScopeRadius" ModOpID="HaciendaTownhallRadius" ExposeID="Hacienda Townhall: Radius" Description="This value sets the raidus of the Hacienda Guild House [in tiles]" Kind="Enum">
    <FixedValues>
      <Value>10</Value>
      <Value>15</Value>
      <Value>20</Value>
      <Value>25</Value>
    </FixedValues>
  </ImyaExpose>
  <ModOp Type="replace" GUID="1999002103" Path="/Values/Maintenance/Maintenances/Item[2]" ModOpID="HaciendaTownhallMaintanence" Skip="1">
    <Item>
      <Product>0</Product>
      <Amount>0</Amount>
    </Item>
  </ModOp>
  <ImyaExpose Path="self::Item/Amount" ModOpID="HaciendaTownhallMaintanence" ExposeID="Hacienda Townhall: Workforce Amount" />
  <ImyaExpose Path="self::Item/Product" ModOpID="HaciendaTownhallMaintanence" ExposeID="Hacienda Townhall: Workforce Type" Description="These values set the amount and type of workforce which is used as maintanence for the Hacienda Guild House [0 - None, 1010366 - Jornaleros, 1010367 - Obreros, 5406 - Artistas]" Kind="Enum">
    <FixedValues>
      <Value>0</Value>
      <Value>1010366</Value>
      <Value>1010367</Value>
      <Value>5406</Value>
    </FixedValues>
  </ImyaExpose>
  <ModOp Type="add" GUID="190781,368" Path="/Values/ItemEffectTargetPool/EffectTargetGUIDs">
    <Item>
      <GUID>1999002103</GUID>
    </Item>
  </ModOp>
  <!-- Construction Menu Guild House/Town Hall -->
  <ModOp Type="addNextSibling" GUID="25178">
    <Asset>
      <Template>ConstructionCategory</Template>
      <Values>
        <Standard>
          <GUID>1999002104</GUID>
          <Name>Hacienda Construction Menu Publics</Name>
          <IconFilename>data/modgraphics/hacienda_expanded/ui/icon_hacienda_publics.png</IconFilename>
        </Standard>
        <ConstructionCategory>
          <BuildingList>
            <Item>
              <Building>1999002076</Building>
            </Item>
            <Item>
              <Building>1999002103</Building>
            </Item>
          </BuildingList>
          <CategoryDescription>1999002106</CategoryDescription>
        </ConstructionCategory>
        <Text>
          <LocaText>
            <English>
              <Text>Hacienda Publics</Text>
              <Status>Exported</Status>
              <ExportCount>1</ExportCount>
            </English>
          </LocaText>
          <LineID>27185</LineID>
        </Text>
        <Locked />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="1999002020,1999002070" Condition="@1999002020" Path="/Values/ConstructionCategory/BuildingList/Item[Building='1999002025']">
    <Item>
      <Building>1999002104</Building>
    </Item>
  </ModOp>
  <!-- Trigger all new buildings and wall ornament buildings with 1 Obrero -->
  <ModOp Type="addNextSibling" GUID="130248">
    <Asset>
      <Template>Trigger</Template>
      <Values>
        <Standard>
          <GUID>1999002105</GUID>
          <Name>Hacienda Town Hall</Name>
        </Standard>
        <Trigger>
          <TriggerCondition>
            <Template>ConditionPlayerCounter</Template>
            <Values>
              <Condition />
              <ConditionPlayerCounter>
                <PlayerCounter>PopulationByLevel</PlayerCounter>
                <Context>15000006</Context>
                <CounterAmount>1</CounterAmount>
              </ConditionPlayerCounter>
            </Values>
          </TriggerCondition>
          <TriggerActions>
            <Item>
              <TriggerAction>
                <Template>ActionUnlockAsset</Template>
                <Values>
                  <Action />
                  <ActionUnlockAsset>
                    <UnhideAssets>
                      <Item>
                        <Asset>1999002104</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002103</Asset>
                      </Item>
                    </UnhideAssets>
                  </ActionUnlockAsset>
                </Values>
              </TriggerAction>
            </Item>
            <Item>
              <TriggerAction>
                <Template>ActionUnlockAsset</Template>
                <Values>
                  <Action />
                  <ActionUnlockAsset>
                    <UnlockAssets>
                      <Item>
                        <Asset>1999002104</Asset>
                      </Item>
                      <Item>
                        <Asset>1999002103</Asset>
                      </Item>
                    </UnlockAssets>
                  </ActionUnlockAsset>
                </Values>
              </TriggerAction>
            </Item>
          </TriggerActions>
        </Trigger>
        <TriggerSetup />
      </Values>
    </Asset>
  </ModOp>
  <!-- Trigger all new advanced Institutions with vanilla Unlocks -->
  <ModOp Type="add" GUID="7336" Path="/Values/AssetPool/AssetList">
    <Item>
      <Asset>1999002145</Asset>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="130248">
    <Asset>
      <Template>Trigger</Template>
      <Values>
        <Standard>
          <GUID>199002142</GUID>
          <Name>Trigger Unlock Advanced Hacienda Police Station</Name>
        </Standard>
        <Trigger>
          <TriggerCondition>
            <IsBaseAutoCreateAsset>1</IsBaseAutoCreateAsset>
            <Values>
              <Condition />
              <ConditionAlwaysTrue />
            </Values>
          </TriggerCondition>
          <TriggerActions>
            <Item>
              <TriggerAction>
                <Template>ActionRegisterTrigger</Template>
                <Values>
                  <Action />
                  <ActionRegisterTrigger>
                    <TriggerAsset>7222</TriggerAsset>
                  </ActionRegisterTrigger>
                </Values>
              </TriggerAction>
            </Item>
          </TriggerActions>
        </Trigger>
        <TriggerSetup />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="7333" Path="/Values/AssetPool/AssetList">
    <Item>
      <Asset>1999002146</Asset>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="130248">
    <Asset>
      <Template>Trigger</Template>
      <Values>
        <Standard>
          <GUID>1999002143</GUID>
          <Name>Trigger Unlock Advanced Hacienda Fire Station</Name>
        </Standard>
        <Trigger>
          <TriggerCondition>
            <IsBaseAutoCreateAsset>1</IsBaseAutoCreateAsset>
            <Values>
              <Condition />
              <ConditionAlwaysTrue />
            </Values>
          </TriggerCondition>
          <TriggerActions>
            <Item>
              <TriggerAction>
                <Template>ActionRegisterTrigger</Template>
                <Values>
                  <Action />
                  <ActionRegisterTrigger>
                    <TriggerAsset>6021</TriggerAsset>
                  </ActionRegisterTrigger>
                </Values>
              </TriggerAction>
            </Item>
            <Item>
              <TriggerAction>
                <Template>ActionRegisterTrigger</Template>
                <Values>
                  <Action />
                  <ActionRegisterTrigger>
                    <TriggerAsset>6022</TriggerAsset>
                  </ActionRegisterTrigger>
                </Values>
              </TriggerAction>
            </Item>
          </TriggerActions>
        </Trigger>
        <TriggerSetup />
      </Values>
    </Asset>
  </ModOp>
  <ModOp Type="add" GUID="7337" Path="/Values/AssetPool/AssetList">
    <Item>
      <Asset>1999002147</Asset>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="130248">
    <Asset>
      <Template>Trigger</Template>
      <Values>
        <Standard>
          <GUID>1999002144</GUID>
          <Name>Trigger Unlock Advanced Hacienda Hospital</Name>
        </Standard>
        <Trigger>
          <TriggerCondition>
            <IsBaseAutoCreateAsset>1</IsBaseAutoCreateAsset>
            <Values>
              <Condition />
              <ConditionAlwaysTrue />
            </Values>
          </TriggerCondition>
          <TriggerActions>
            <Item>
              <TriggerAction>
                <Template>ActionRegisterTrigger</Template>
                <Values>
                  <Action />
                  <ActionRegisterTrigger>
                    <TriggerAsset>7224</TriggerAsset>
                  </ActionRegisterTrigger>
                </Values>
              </TriggerAction>
            </Item>
          </TriggerActions>
        </Trigger>
        <TriggerSetup />
      </Values>
    </Asset>
  </ModOp>
  <!-- Trigger new Hacienda 2x3 Artista residences -->
  <ModOp Type="addNextSibling" GUID="130248">
    <Asset>
      <Template>Trigger</Template>
      <Values>
        <Standard>
          <GUID>1999002141</GUID>
          <Name>Unlock Artista 2x3 Residences</Name>
        </Standard>
        <Trigger>
          <TriggerCondition>
            <Template>ConditionPlayerCounter</Template>
            <Values>
              <Condition />
              <ConditionPlayerCounter>
                <PlayerCounter>PopulationByLevel</PlayerCounter>
                <Context>5403</Context>
                <CounterAmount>1</CounterAmount>
              </ConditionPlayerCounter>
            </Values>
          </TriggerCondition>
          <TriggerActions>
            <Item>
              <TriggerAction>
                <Template>ActionUnlockAsset</Template>
                <Values>
                  <Action />
                  <ActionUnlockAsset>
                    <UnhideAssets>
                      <Item>
                        <Asset>1999002139</Asset>
                      </Item>
                    </UnhideAssets>
                  </ActionUnlockAsset>
                </Values>
              </TriggerAction>
            </Item>
            <Item>
              <TriggerAction>
                <Template>ActionUnlockAsset</Template>
                <Values>
                  <Action />
                  <ActionUnlockAsset>
                    <UnlockAssets>
                      <Item>
                        <Asset>1999002139</Asset>
                      </Item>
                    </UnlockAssets>
                  </ActionUnlockAsset>
                </Values>
              </TriggerAction>
            </Item>
          </TriggerActions>
        </Trigger>
        <TriggerSetup />
      </Values>
    </Asset>
  </ModOp>
  <Include File="./haciendaoverhaul_extendedhacienda.include.imyatweak.include.xml" />
</ModOps>