<?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="Butterfly Opals" el:subtitle="" el:id="20081207ral708"/>
      <el:version el:score="1" el:release="1" el:revision="$Revision: 210 $" 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:compatibility>
      <el:modes el:easy="true" el:single="true" el:network="false"/>
      <el:score el:easy="10:54" el:difficult="26:30"/>
    </el:info>
    <el:luamain><![CDATA[

wo["ConserveLevel"] = true
wo["MaxOxydColor"] = OXYD_ORANGE
wo["AllowSingleOxyds"] = true

ti[" "] = {"fl_wood_framed"}
ti["~"] = {"fl_water"}
ti[":"] = {"it_seed"}
ti[";"] = {"it_seed_greenbrown"}
ti["@"] = {"#ac_pearl"}
ti["N"] = {"st_nil"}
ti["P"] = {"st_greenbrown_growing"}
ti["B"] = {"st_oxyd_e", "ox", oxydcolor=OXYD_BOLD, noshuffle=true, safeaction=true, target = "shuffle"}
ti["."] = {"st_oxyd_e", selection={"=P", "=N"}}

if wo["IsDifficult"] then
  ti["*"] = ti["."]
  ti["!"] = ti["~"]
else
  ti["*"] = ti["~"]
  ti["!"] = ti["."]
end

w, h = wo(ti, " ", {
 -- 01234567890123456789
   "~~~~~~~~~~~~~~~~~~~",
   "~****~~~***~~~****~",
   "~**......!......**~",
   "~*.!...........!.*~",
   "~*....... .......*~",
   "~~...... @ ......~~",
   "~~..!..  B  ..!..~~",
   "~~......   ......~~",
   "~*....... .......*~",
   "~*.!...........!.*~",
   "~**......!......**~",
   "~****~~~***~~~****~",
   "~~~~~~~~~~~~~~~~~~~"
})

function shuffle(value, sender)
    if wo["IsDifficult"] then
        sender:peepall()
    end
    sender:kill()
end

wo:shuffleOxyd()

if wo["IsDifficult"] then
    no["ox"]:peepall()
end

    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
