<?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="Wood robbing" el:subtitle="" el:id="alain08"/>
      <el:version el:score="1" el:release="2" el:revision="1" el:status="released"/>
      <el:author el:name="Alain Busser" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2006 Alain Busser</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="false"/>
      <el:score el:easy="-" el:difficult="1:57"/>
    </el:info>
    <el:luamain><![CDATA[
ti[" "] = {"fl_brick"}
ti["="] = {"st_pinkbumps"}
ti["#"] = {"st_brick"}
ti["X"] = {"st_grate_cross"}
ti["B"] = {"st_dispenser_bombblack"}
ti["+"] = {"st_box_wood"}
ti["-"] = {"st_door_d", faces="ns", name="door%%"}
ti["|"] = {"st_door_d", faces="ew", name="door%%"}
ti["trigger"] = {"it_trigger", name="trigger%%", target="door%%"}
ti["K"] = {"st_key", target="info"}
ti["k"] = {"it_key"}
ti["d"] = {"it_dynamite"}
ti["b"] = {"it_bomb_black"}
ti["*"] = ti["+"] .. ti["b"]
ti["O"] = {"st_oxyd"}
ti["@"] = {"#ac_marble_black"}

wo(res.autotile(ti, {"e","j","trigger"}, {"E","F","-"}, {"G","J","|",3}), " ", {
    "====================",
    "=       efg  X   dk=",
    "= +++   hij  ######=",
    "= +X*+       X+ +  B",
    "= +++        X+ +  =",
    "=       @ b  X+ + K=",
    "=            X+ +  =",
    "=            X+ +  =",
    "=##E###############=",
    "=     G H I J      =",
    "=##############F###=",
    "=O                O=",
    "===================="})

function info()
    wo[no["trigger%6"] + S] = {"it_document", text="text1"}
end
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="true"/>
        <el:translation el:lang="fr">Cambriolage de stocks de bois</el:translation>
      </el:string>
      <el:string el:key="text1">
        <el:english el:translate="false">Gotcha!</el:english>
        <el:translation el:lang="fr">Je vous ai bien eu!</el:translation>
      </el:string> 
    </el:i18n>
  </el:protected>
</el:level>
