<?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="esprit 66" el:subtitle="esprit 66" el:id="ss_esp66"/>
      <el:version el:score="1" el:release="2" el:revision="1" el:status="released"/>
      <el:author el:name="Sven Siggelkow" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2003 Sven Siggelkow</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.20"/>
      <el:modes el:easy="false" el:single="true" el:network="false"/>
      <el:comments>
        <el:code>New API converted by /dev/null, December 2013</el:code>
      </el:comments>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
wo["WormholeStrength"] = 5.0
wo["WormholeRange"] = 0.0

ti[" "] = {"fl_woven"}
ti["#"] = {"st_bluegray"}
ti["-"] = {"st_bluegray_hollow"}
ti["R"] = ti["-"] .. {"fl_slope_pe"}
ti["L"] = ti["-"] .. {"fl_slope_pw"}
ti["!"] = {"st_thief"}
ti["D"] = ti["#"] .. {"fl_woven", name="floor"}
ti["^"] = {"st_oneway_n", name="oneway#", color=BLACK}
ti[">"] = {"st_oneway_e", name="oneway#", color=BLACK}
ti["v"] = {"st_oneway_s", name="oneway#", color=BLACK}
ti["<"] = {"st_oneway_w", name="oneway#", color=BLACK}
ti["M"] = {"st_coinslot", target="@oneway#*", action="flip"}
ti["k"] = ti["-"] .. {"it_key"}
ti["K"] = {"st_key", target="toggleDoor"}
ti["c"] = {"it_coin_s"}
ti["C"] = {"it_coin_l"}
ti["x"] = {"st_grate_framed"}
ti["X"] = ti["c"] .. ti["x"]
ti["y"] = {"st_bluegray_hollow", name="bottom"}
ti["Y"] = ti["-"] .. {"it_wormhole", destination="bottom"}
ti["z"] = {"st_bluegray_hollow", name="top"}
ti["Z"] = ti["-"] .. {"it_wormhole", destination="top"}
ti["u"] = {"it_umbrella"}
ti["O"] = {"st_oxyd"}
ti["@"] = {"#ac_marble"}

wo(ti, " ", {
    "#######################################",
    "#O     c             >               O#",
    "#u       @         u M                #",
    "#           c        !                #",
    "#  ######^M#########################  #",
    "#  #O                >            O#  #",
    "#  #                 M             #  #",
    "#  #                 !             #  #",
    "#  #  ########M^#K###############  #  #",
    "#  #  #O -Yk         !c        O#  #  #",
    "#  #  #  ---         M          #  #  #",
    "!LR!  #  -z-         <  c       #  #  #",
    "!LR!  #  ########D############  #  #  #",
    "!LR!  #  #      !x!          #  #  #  #",
    "!LR!  #  #      !x!          #  #  #  #",
    "!LR!  #  #    !!!x!!!!!!!    #  #  #  #",
    "!LR!  #  #    !XxXxXxXxX!    #C #  #  #",
    "#  #  #  #    !xXxXxXxXx!    #  #  #  #",
    "#  M  #^M#    !XxXxXxXxX!    #M^#M^!^M#",
    "#  <  #  #    !xXxXxXxXx!    #  !  !  #",
    "!--!  #  #    !XxXxXxXxX!    #  !  !  #",
    "!--!  #  #    !!!!!!!!!!!    !  #  !  #",
    "!--!  #  #                   !  #  #  #",
    "!--!  !  #                   #  #  #  #",
    "!--!  #  #####################  #  #  #",
    "!--!  #              >          #  #  #",
    "#  #  #              M          #  #  #",
    "#  #  #O    c       c!    c    O#  #  #",
    "#  #  ###########!!!#########vM##  #  #",
    "#  #                 <             #  #",
    "#  #                 M             #  #",
    "#  #O c      c       ! c          O#  #",
    "#  #################################  #",
    "#                    <           -y-  #",
    "#                    M           ---  #",
    "#O     c       c     !           -Z- O#",
    "#######################################"})

wo:shuffleOxyd()

pos = po(no["floor"])

function toggleDoor(val, src)
    wo[pos] = {"st_nil"}
    if val == OFF then
        wo[pos] = ti["#"]
    else
        wo[pos] = {"st_nil"}
    end
end
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
