<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<el:level xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://enigma-game.org/schema/level/1 level.xsd" xmlns:el="http://enigma-game.org/schema/level/1">
  <el:protected>
    <el:info el:type="level">
      <el:identity el:title="Shogun Connection III" el:subtitle="" el:id="devnull105"/>
      <el:version el:score="1" el:release="1" el:revision="1" el:status="released"/>
      <el:author el:name="/dev/null" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2011 dev0</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.10"/>
      <el:modes el:easy="false" el:single="true" el:network="true"/>
      <el:score el:easy="-" el:difficult="2:08"/>
    </el:info>
    <el:luamain><![CDATA[
wo["AutoRespawn"] = true
wo["AllowSuicide"] = false

ti["  "] = {"fl_rock"}
ti["# "] = ti({"fl_gravel"}) .. {"st_rawglass_quad"}
ti["shogunS"] = {"st_shogun", name="shogunS%%", flavor="s"}
ti["shogunM"] = {"st_shogun", name="shogunM%%", flavor="m"}
ti["shogunL"] = {"st_shogun", name="shogunL%%", flavor="l"}
ti["dotL"] = {"it_shogun_l", target="toggleDoors", action="signal"}
ti["DW"] = {"st_door", name="door#", faces="ns"}
ti["DB"] = {"st_door", name="door#", faces="ew"}
ti["OB"] = {"st_oxyd_c", oxydcolor=OXYD_BLACK}
ti["OG"] = {"st_oxyd_c", oxydcolor=OXYD_GRAY}
ti["OW"] = {"st_oxyd_c", oxydcolor=OXYD_WHITE}
ti["OO"] = {"st_oxyd_c", oxydcolor=OXYD_ORANGE}
ti["@0"] = {"#ac_marble_black", essential=INDISPENSABLE}
ti["@1"] = {"#ac_marble_white", essential=INDISPENSABLE}

wo(res.composer(res.autotile(ti, {"S", "shogunS"}, {"M", "shogunM"}, {"L", "shogunL"}, {"l", "dotL"})), "  ", {
    "# # # # # # # # # # # # # # # # # # # # ",
    "#                 #                 @1# ",
    "#   LC        #   #   MB          LB  # ",
    "#       lCMC      #         lb        # ",
    "#   #         SC  #   SB          #   # ",
    "#                 #                   # ",
    "# # # # # # # # # # # # # # # # # # DW# ",
    "#                   # # OB            # ",
    "#   #           LA  #   OGOW          # ",
    "#         la        #     OO# # OO    # ",
    "#   SA          MA  #           OWOG  # ",
    "# @0                DB            OB# # ",
    "# # # # # # # # # # # # # # # # # # # # "})

wo:add({"ot_wire", anchor1="shogunS%C", anchor2="shogunS%A"})
wo:add({"ot_wire", anchor1="shogunM%C", anchor2="shogunM%A"})
wo:add({"ot_wire", anchor1="shogunL%C", anchor2="shogunL%A"})
wo:add({"ot_wire", anchor1="shogunS%C", anchor2="shogunS%B"})
wo:add({"ot_wire", anchor1="shogunM%C", anchor2="shogunM%B"})
wo:add({"ot_wire", anchor1="shogunL%C", anchor2="shogunL%B"})

wo:add({"ot_counter", name="toggleDoors", state=0, target="door#*", action_2="close", action_3="open"})
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
