<!--
  Compatibility Changes for Hotel needs

  You are free to include this snippet in your mod, as long as you don't change any values.
  Copy the file as is and use `<Include File="./assets-hotel-needs.include.xml" />`.

  Original from: https://github.com/anno-mods/shared-resources
  You can request changes there as well.

  Limit all Hotel needs to vanilla hotel only.
  Mods have to add themselves to the `RequiredBuildings` list.

  <ModOp Type="add" GUID="601379" Path="/Values/PopulationLevel7/PopulationInputs/Item/RequiredBuildings[Item/Region='Moderate']">
    <Item>
      <RequiredBuilding>my-guid</RequiredBuilding>
      <Region>Moderate</Region>
    </Item>
  </ModOp>
-->
<ModOps>
  <!-- # OW Needs -->
  <ModOp Type="add" GUID="601379"
    Condition="~/Values/PopulationLevel7/PopulationInputs/Item[not(RequiredBuildings)]"
    Path="/Values/PopulationLevel7/PopulationInputs/Item[not(RequiredBuildings)]">
    <RequiredBuildings>
      <Item>
        <RequiredBuilding>601445</RequiredBuilding>
        <Region>Moderate</Region>
      </Item>
    </RequiredBuildings>
  </ModOp>

  <!-- # NW Tourism Needs -->
  <ModOp Type="addNextSibling" GUID="601379"
    Condition="!~/Values/PopulationLevel7/PopulationInputs/Item[Product='1440134405']"
    Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='133573']">
    <Item>
      <Product>1440134405</Product> <!-- NW Tourism Boxing -->
      <SupplyWeight>25</SupplyWeight>
      <MoneyValue>45</MoneyValue>
      <FullWeightPopulationCount>50</FullWeightPopulationCount>
      <NoWeightPopulationCount>49</NoWeightPopulationCount>
      <RequiredBuildings>
        <Item>
          <RequiredBuilding>1440134300</RequiredBuilding>
          <Region>Colony01</Region>
        </Item>
      </RequiredBuildings>
    </Item>
  </ModOp>
  <ModOp Type="add" GUID="601379"
    Condition="!~/Values/PopulationLevel7/PopulationInputs/Item[Product='1440134406']"
    Path="/Values/PopulationLevel7/PopulationInputs">
    <Item>
      <Product>1440134406</Product> <!-- NW Tourism Christo -->
      <SupplyWeight>80</SupplyWeight>
      <MoneyValue>135</MoneyValue>
      <FullWeightPopulationCount>4000</FullWeightPopulationCount>
      <NoWeightPopulationCount>2499</NoWeightPopulationCount>
      <RequiredBuildings>
        <Item>
          <RequiredBuilding>1440134300</RequiredBuilding>
          <Region>Colony01</Region>
        </Item>
      </RequiredBuildings>
    </Item>
  </ModOp>
  <ModOp Type="addPrevSibling" GUID="601379"
    Condition="!~/Values/PopulationLevel7/PopulationInputs/Item[Product='1440134407']"
    Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='601485']">
    <Item>
      <Product>1440134407</Product> <!-- NW Tourism Hacienda -->
      <HappinessValue>3</HappinessValue>
      <IsOptionalHappinessValue>1</IsOptionalHappinessValue>
      <MoneyValue>75</MoneyValue>
      <RequiredBuildings>
        <Item>
          <RequiredBuilding>1440134300</RequiredBuilding>
          <Region>Colony01</Region>
        </Item>
      </RequiredBuildings>
    </Item>
  </ModOp>
  <ModOp Type="addNextSibling" GUID="601379"
    Condition="!~/Values/PopulationLevel7/PopulationInputs/Item[Product='120043']"
    Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='1010247']">
    <Item>
      <Product>120043</Product>
      <Amount>0.01666667</Amount>
      <HappinessValue>3</HappinessValue>
      <MoneyValue>40</MoneyValue>
      <FullWeightPopulationCount>75</FullWeightPopulationCount>
      <NoWeightPopulationCount>49</NoWeightPopulationCount>
      <RequiredBuildings>
        <Item>
          <RequiredBuilding>1440134300</RequiredBuilding>
          <Region>Colony01</Region>
        </Item>
      </RequiredBuildings>
    </Item>
  </ModOp>

  <!-- copy needs from vanilla hotel -->
  <ModOp Type="add" GUID="601379"
    AllowNoMatch="1"
    Path="/Values/PopulationLevel7/PopulationInputs/Item[not(RequiredBuildings/Item/RequiredBuilding='1440134300') and (Product&lt;1010500) and not(Product='133573') and not(Product='132761') and not(Product='133536') and not(Product='137757') and not(Product='1010247') and not(Product='134257') and not(Product='134781')]/RequiredBuildings">
    <Item>
      <RequiredBuilding>1440134300</RequiredBuilding>
      <Region>Colony01</Region>
    </Item>
  </ModOp>

  <Group Condition="#NewWorldDocklands">
    <ModOp Type="add" GUID="601379"
      Condition="!/Values/PopulationLevel7/PopulationInputs/Item[Product='134781' and RequiredBuildings/Item/RequiredBuilding='1440134300']"
      Path="/Values/PopulationLevel7/PopulationInputs/Item[Product='134781']/RequiredBuildings">
      <Item>
        <RequiredBuilding>1440134300</RequiredBuilding>
        <Region>Colony01</Region>
      </Item>
    </ModOp>
  </Group>
</ModOps>
