<?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="Automaton Magic" el:subtitle="" el:id="ant07"/>
      <el:version el:score="1" el:release="1" el:revision="0" el:status="released"/>
      <el:author  el:name="Petr Machata" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2002 Petr Machata</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="0.92">
       <el:dependency el:path="lib/ant" el:id="lib/ant" el:release="1" el:preload="true"/>
      </el:compatibility>
      <el:modes el:easy="false" el:single="true" el:network="false"/>
      <el:comments>
        <el:code>Lua 5.1 and XML converted by Leveladministrators</el:code>
      </el:comments>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
-- 2003-02-10 -- keeping up to date with latest additions to ant.lua
-- 2003-06-23 -- changed abyss to water, because st-bolder now falls into abyss [ralf]

stepon = nil
function turnbolder()
   stepon = not(stepon)
   if (stepon) then
      local bolder_dir=enigma.GetAttrib(enigma.GetNamedObject("bolder1"), "direction") -1
      while (bolder_dir<0) do bolder_dir = bolder_dir +4 end
      SendMessage("bolder1", "direction",bolder_dir)
   end
end

cells={}
cells[" "]=cell{floor="fl-sand"}
cells["."]=cell{floor="fl-water"}
cells["#"]=cell{stone="st-greenbrown"}
cells["O"]=cell{actor={"ac-blackball", {player=0}}}
cells["m"]=cell{item= {"it-magicwand"}}
cells["T"]=cell{parent=cells["."],item={"it-trigger", {action="callback", target="turnbolder", invisible=1}}}
cells[">"]=cell{stone={"st-bolder-e", {name="bolder1"}}}
cells["0"]=oxyd

level = {
   "####0##########0####",
   "#....          ....#",
   "#.                .#",
   "#.                .#",
   "0.  T   >      T  .0",
   "#                  #",
   "#       m O        #",
   "#                  #",
   "0.  T          T  .0",
   "#.                .#",
   "#.                .#",
   "#....          ....#",
   "####0##########0####"
}

oxyd_default_flavor = "a"
set_default_parent(cells[" "])
create_world_by_map(level)
oxyd_shuffle()
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
