<?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="Brilliant Opals" el:subtitle="The journey is the reward" el:id="20081212ral162"/>
      <el:version el:score="1" el:release="1" el:revision="$Revision: 212 $" el:status="released"/>
      <el:author el:name="Ronald Lamprecht, Andreas Lochmann" el:email="ral@users.berlios.de" el:homepage=""/>
      <el:copyright>Copyright © 2008,2010 Ronald Lamprecht</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.10"/>
      <el:modes el:easy="true" el:single="true" el:network="false"/>
      <el:score el:easy="6:00" el:difficult="7:30"/>
    </el:info>
    <el:luamain><![CDATA[

wo["ConserveLevel"] = true
wo["MaxOxydColor"] = cond(wo["IsDifficult"], OXYD_BROWN, OXYD_ORANGE)
wo["AllowSingleOxyds"] = true

ti[" "] = {"fl_lawn_e4", friction=4.5}
ti["~"] = {"fl_water"}
ti[":"] = {"it_seed"}
ti["P"] = {"st_panel", cluster=1}
ti["N"] = {"st_nil"}
ti["@"] = {"#ac_pearl"}
ti["B"] = {"st_oxyd_e", oxydcolor=OXYD_BOLD, noshuffle=true, safeaction=true, target = "shuffle"}
ti["."] = {"st_oxyd_e", selection={"=P", "=N"}}
ti["+"] = {"st_oxyd_e", "ox", selection={"=P", "=N"}}

if wo["IsDifficult"] then
  ti["*"] = ti["B"]
  ti["#"] = ti["."]
  ti["%"] = ti["."]
else
  ti["*"] = ti[" "]
  ti["%"] = ti[" "]
  ti["#"] = ti["B"]
end

w, h = wo(ti, " ", {
 -- 01234567890123456789
   "~~~~~~+..~...~~~~~~",
   "~~~~~...~.~...~~~~~",
   "~~~~...~...~...~~~~",
   "~~~...*..%..*...~~~",
   "~~...~... ...~...~~",
   "~...~...# #...~...~",
   "...~..%  @  %..~...",
   "~...~...# #...~...~",
   "~~...~... ...~...~~",
   "~~~...*..%..*...~~~",
   "~~~~...~...~...~~~~",
   "~~~~~...~.~...~~~~~",
   "~~~~~~...~...~~~~~~"
})


function shuffle(value, sender)
    sender:peepall()
    sender:kill()
end

wo:shuffleOxyd()
no["ox"]:peepall()

    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
      <el:string el:key="subtitle">
        <el:english el:translate="true"/>
        <el:translation el:lang="de">Der Weg ist das Ziel</el:translation>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
