<?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="Y Junction" el:subtitle="" el:id="devnull163"/>
      <el:version el:score="1" el:release="1" el:revision="2" el:status="released"/>
      <el:author el:name="/dev/null" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2014 /dev/null</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.20"/>
      <el:modes el:easy="true" el:single="true" el:network="true"/>
      <el:score el:easy="4:32" el:difficult="4:32"/>
    </el:info>
    <el:luamain><![CDATA[
wo["AutoRespawn"] = true
wo["AllowSuicide"] = false
wo["WormholeRange"] = cond(wo["IsDifficult"], 3.0, 1.0)
wo["WormholeStrength"] = cond(wo["IsDifficult"], 20.0, 10.0)
wo["MaxOxydColor"] = OXYD_BROWN
wo["FollowMethod"] = FOLLOW_SCROLL

ti["  "] = {"fl_rock_framed"}
ti[" ~"] = {"fl_abyss"}
ti["# "] = {"st_bluesand", cluster=1}
ti["+ "] = {"st_box_rock"}
ti["B "] = {"st_break_black"}
ti["W "] = {"st_break_white"}
ti["Y "] = {"st_blur_magic"}
ti["wormholes"] = ti[" ~"] .. {"it_wormhole", name="wormHole%%", destination="wormHoleDest%%"}
ti["wormholeDests"] = ti({"st_barrier"}) .. {"fl_rock_framed", name="wormHoleDest%%"}
ti[" h"] = {"it_hammer"}
ti[" m"] = {"it_magicwand"}
ti[" l"] = {"it_extralife"}
ti["O "] = {"st_oxyd", flavor="c"}
ti["@0"] = {"#ac_marble_black", owner=YIN, controllers=CTRL_YIN, essential=INDISPENSABLE}
ti["@1"] = {"#ac_marble_white", owner=YANG, controllers=CTRL_YANG, essential=INDISPENSABLE}

wo(res.composer(res.autotile(ti, {"H", "wormholes"}, {"h", "wormholeDests"})), "  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