<ModOps>
    <!-- #remove Obrero and Artista Residences, if you use "residences must be upgraded" or "extended Hacienda"-->
    <ModOp Type="remove" GUID="1999002020" Condition="@1999002020/ConstructionCategory/BuildingList/Item[Building = '24793']" Path="/Values/ConstructionCategory/BuildingList/Item[Building = '24793']"></ModOp>
    <ModOp Type="remove" GUID="1999002020" Condition="@1999002020/ConstructionCategory/BuildingList/Item[Building = '6086']" Path="/Values/ConstructionCategory/BuildingList/Item[Building = '6086']"></ModOp>
    <ModOp Type="remove" GUID="1999002070" Condition="@1999002070/ConstructionCategory/BuildingList/Item[Building = '24793']" Path="/Values/ConstructionCategory/BuildingList/Item[Building = '24793']"></ModOp>
    <ModOp Type="remove" GUID="1999002070" Condition="@1999002070/ConstructionCategory/BuildingList/Item[Building = '6086']" Path="/Values/ConstructionCategory/BuildingList/Item[Building = '6086']"></ModOp>
    <ModOp Type="remove" GUID="1999002093" Condition="@1999002093/ConstructionCategory/BuildingList/Item[Building = '24793']" Path="/Values/ConstructionCategory/BuildingList/Item[Building = '24793']"></ModOp>
    <ModOp Type="remove" GUID="1999002093" Condition="@1999002093/ConstructionCategory/BuildingList/Item[Building = '6086']" Path="/Values/ConstructionCategory/BuildingList/Item[Building = '6086']"></ModOp>

    <!-- #Jornaleros Upgradeable -->
    <ModOp Type="replace" GUID="24792" Path="/Values/Upgradable">
        <Upgradable>
            <NextGUID>24793</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>10</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>
    </ModOp>

    <ModOp Type="replace" GUID="24793" Path="/Values/Cost">
        <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>6</Amount>
                </Item>
                <Item>
                    <VectorElement>
                        <InheritedIndex>2</InheritedIndex>
                        <InheritanceMapV2>
                            <Entry>
                                <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                                <Index>2</Index>
                            </Entry>
                        </InheritanceMapV2>
                    </VectorElement>
                    <Amount>10</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>
    </ModOp>

    <!-- #Obreros Upgradeable -->
    <ModOp Type="replace" GUID="24793" Path="/Values/Upgradable">
        <Upgradable>
            <NextGUID>6086</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>8</Amount>
                </Item>
                <Item>
                    <VectorElement>
                        <InheritedIndex>2</InheritedIndex>
                        <InheritanceMapV2>
                            <Entry>
                                <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                                <Index>2</Index>
                            </Entry>
                        </InheritanceMapV2>
                    </VectorElement>
                    <Amount>15</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>5</Amount>
                    <Ingredient>838</Ingredient>
                </Item>
            </UpgradeCost>
        </Upgradable>
    </ModOp>

    <ModOp Type="replace" GUID="6086" Path="/Values/Cost">
        <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>14</Amount>
                </Item>
                <Item>
                    <VectorElement>
                        <InheritedIndex>2</InheritedIndex>
                        <InheritanceMapV2>
                            <Entry>
                                <TemplateName>ResidenceBuilding7_Colony</TemplateName>
                                <Index>2</Index>
                            </Entry>
                        </InheritanceMapV2>
                    </VectorElement>
                    <Amount>25</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>5</Amount>
                    <Ingredient>838</Ingredient>
                </Item>
            </Costs>
        </Cost>
    </ModOp>

    <!-- #Obreros, Artistas copying impossible -->
    <ModOp Type="add" GUID="24793,6086" Path="/Values/Building">
        <PickingAsset>24792</PickingAsset>
    </ModOp>

    <!-- #remove Obrero and Artista houses from module selection! -> must be upgraded -->
    <ModOp Type="remove" GUID="24768" Path="/Values/ModuleOwner/ConstructionOptions/Item[ModuleGUID='24793']"></ModOp>
    <ModOp Type="remove" GUID="24768" Path="/Values/ModuleOwner/ConstructionOptions/Item[ModuleGUID='6086']"></ModOp>

    <!-- #apoint new uniform Icon for Hacienda Residences, when using "residences must be upgraded"-->
    <ModOp Type="replace" GUID="24792" Condition="!@24768/ModuleOwner/ConstructionOptions/Item[ModuleGUID='24793']" Path="/Values/Standard/IconFilename">
        <IconFilename>data/modgraphics/ui/icon_hacienda_house.png</IconFilename>
    </ModOp>
</ModOps>