<?xml version="1.0"?>
<include file="../workshop.png">
  <if>
    <MaterialType value="Wood" />
    <sprite index="21" color="building" pattern_index="0" />
  </if>
  <else>
    <MaterialType value="GreenGlass" pattern_index="0" />
    <sprite index="24" />
  </else>
  <else>
    <or>
      <MaterialType value="ClearGlass" pattern_index="0" />
      <MaterialType value="CrystalGlass" pattern_index="0" />
    </or>
    <sprite index="23" />
  </else>
  <else>
    <or>
      <MaterialType value="Metal" subtype="IRON" pattern_index="0" />
      <MaterialType value="Metal" subtype="GOLD" pattern_index="0" />
      <MaterialType value="Metal" subtype="SILVER" pattern_index="0" />
      <MaterialType value="Metal" subtype="COPPER" pattern_index="0" />
      <MaterialType value="Metal" subtype="NICKEL" pattern_index="0" />
      <MaterialType value="Metal" subtype="ZINC" pattern_index="0" />
      <MaterialType value="Metal" subtype="BRONZE" pattern_index="0" />
      <MaterialType value="Metal" subtype="BRASS" pattern_index="0" />
      <MaterialType value="Metal" subtype="STEEL" pattern_index="0" />
      <MaterialType value="Metal" subtype="PIG_IRON" pattern_index="0" />
      <MaterialType value="Metal" subtype="PLATINUM" pattern_index="0" />
      <MaterialType value="Metal" subtype="ELECTRUM" pattern_index="0" />
      <MaterialType value="Metal" subtype="TIN" pattern_index="0" />
      <MaterialType value="Metal" subtype="PEWTER_FINE" pattern_index="0" />
      <MaterialType value="Metal" subtype="PEWTER_TRIFLE" pattern_index="0" />
      <MaterialType value="Metal" subtype="PEWTER_LAY" pattern_index="0" />
      <MaterialType value="Metal" subtype="LEAD" pattern_index="0" />
      <MaterialType value="Metal" subtype="ALUMINUM" pattern_index="0" />
      <MaterialType value="Metal" subtype="NICKEL_SILVER" pattern_index="0" />
      <MaterialType value="Metal" subtype="BILLON" pattern_index="0" />
      <MaterialType value="Metal" subtype="STERLING_SILVER" pattern_index="0" />
      <MaterialType value="Metal" subtype="BLACK_BRONZE" pattern_index="0" />
      <MaterialType value="Metal" subtype="ROSE_GOLD" pattern_index="0" />
      <MaterialType value="Metal" subtype="BISMUTH" pattern_index="0" />
      <MaterialType value="Metal" subtype="BISMUTH_BRONZE" pattern_index="0" />
      <MaterialType value="Metal" subtype="ADAMANTINE" pattern_index="0" />
    </or>
    <sprite index="22" color="building" pattern_index="0" />
  </else>
  <else>
    <sprite index="20" color="building" pattern_index="0" />
  </else>
  <if>
    <MaterialType value="Wood" />
    <sprite index="141" color="building" pattern_index="0" />
  </if>
  <else>
    <MaterialType value="GreenGlass" pattern_index="0" />
    <sprite index="144" />
  </else>
  <else>
    <or>
      <MaterialType value="ClearGlass" pattern_index="0" />
      <MaterialType value="CrystalGlass" pattern_index="0" />
    </or>
    <sprite index="143" />
  </else>
  <else>
    <or>
      <MaterialType value="Metal" subtype="IRON" pattern_index="0" />
      <MaterialType value="Metal" subtype="GOLD" pattern_index="0" />
      <MaterialType value="Metal" subtype="SILVER" pattern_index="0" />
      <MaterialType value="Metal" subtype="COPPER" pattern_index="0" />
      <MaterialType value="Metal" subtype="NICKEL" pattern_index="0" />
      <MaterialType value="Metal" subtype="ZINC" pattern_index="0" />
      <MaterialType value="Metal" subtype="BRONZE" pattern_index="0" />
      <MaterialType value="Metal" subtype="BRASS" pattern_index="0" />
      <MaterialType value="Metal" subtype="STEEL" pattern_index="0" />
      <MaterialType value="Metal" subtype="PIG_IRON" pattern_index="0" />
      <MaterialType value="Metal" subtype="PLATINUM" pattern_index="0" />
      <MaterialType value="Metal" subtype="ELECTRUM" pattern_index="0" />
      <MaterialType value="Metal" subtype="TIN" pattern_index="0" />
      <MaterialType value="Metal" subtype="PEWTER_FINE" pattern_index="0" />
      <MaterialType value="Metal" subtype="PEWTER_TRIFLE" pattern_index="0" />
      <MaterialType value="Metal" subtype="PEWTER_LAY" pattern_index="0" />
      <MaterialType value="Metal" subtype="LEAD" pattern_index="0" />
      <MaterialType value="Metal" subtype="ALUMINUM" pattern_index="0" />
      <MaterialType value="Metal" subtype="NICKEL_SILVER" pattern_index="0" />
      <MaterialType value="Metal" subtype="BILLON" pattern_index="0" />
      <MaterialType value="Metal" subtype="STERLING_SILVER" pattern_index="0" />
      <MaterialType value="Metal" subtype="BLACK_BRONZE" pattern_index="0" />
      <MaterialType value="Metal" subtype="ROSE_GOLD" pattern_index="0" />
      <MaterialType value="Metal" subtype="BISMUTH" pattern_index="0" />
      <MaterialType value="Metal" subtype="BISMUTH_BRONZE" pattern_index="0" />
      <MaterialType value="Metal" subtype="ADAMANTINE" pattern_index="0" />
    </or>
    <sprite index="142" color="building" pattern_index="0" />
  </else>
  <else>
    <sprite index="140" color="building" pattern_index="0" />
  </else>
  <!-- borders -->
  <if>
    <not>
      <or>
        <NeighbourIdentical dir="TopRight" />
        <NeighbourWall dir="TopRight" />
      </or>
    </not>
    <sprite index="10" />
  </if>
  <if>
    <not>
      <or>
        <NeighbourIdentical dir="TopLeft" />
        <NeighbourWall dir="TopLeft" />
      </or>
    </not>
    <sprite index="8" />
  </if>
</include>
