Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix esprit level 26 (bank-o-mat) #86

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<el:protected>
<el:info el:type="level">
<el:identity el:title="Bank-O-Mat" el:subtitle="esprit 26" el:id="ss4"/>
<el:version el:score="3" el:release="3" el:revision="4" el:status="released"/>
<el:version el:score="4" el:release="4" el:revision="5" el:status="released"/>
<el:author el:name="Sven Siggelkow" el:email="" el:homepage=""/>
<el:copyright>Copyright © 2003 Sven Siggelkow</el:copyright>
<el:license el:type="GPL v2.0 or above" el:open="true"/>
Expand All @@ -20,7 +20,7 @@ ti["."] = {"it_seed"}
ti["S"] = {"st_switch_black", target="get_money"}
ti["G"] = {"st_lightglass"}
ti["|"] = {"st_door", name="doors#", flavor="c"}
ti["C"] = {"st_coinslot", interval_m=COIN_IGNORE, target="counter", action="signal"}
ti["C"] = {"st_coinslot", interval_m=12, target="counter", action="signal"}
ti["@"] = {"#ac_marble_black"}

wo(ti, " ", {
Expand All @@ -42,12 +42,14 @@ wo:add({"ot_counter", "counter", state=0, target="doors#*", action_8="open"})

local reserve = 8
function get_money()
if reserve > 0 then
reserve = reserve -1
wo[po(16,1)] = {"it_coin_m"}
else
wo[po(16,1)] = {"it_document", text="text1"}
end
if not it(po(16,1)):exists() then
if reserve > 0 then
reserve = reserve -1
wo[po(16,1)] = {"it_coin_m"}
else
wo[po(16,1)] = {"it_document", text="text1"}
end
end
end
]]></el:luamain>
<el:i18n>
Expand Down
2 changes: 1 addition & 1 deletion data/levels/enigma_esprit/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<level _seq="23" _title="esprit 23" _xpath="./esprit23_2" author="Sven Siggelkow" ctrl="force" easy="false" id="ss_esp23" rel="2" rev="1" score="1" target="time" unit="duration"/>
<level _seq="24" _title="esprit 24" _xpath="./esprit24_1" author="Sven Siggelkow" ctrl="force" easy="false" id="ss_esp24" rel="1" rev="0" score="1" target="time" unit="duration"/>
<level _seq="25" _title="esprit 25" _xpath="./esprit25_2" author="Sven Siggelkow" ctrl="force" easy="false" id="ss_esp25" rel="2" rev="1" score="1" target="time" unit="duration"/>
<level _seq="26" _title="Bank-O-Mat" _xpath="./esprit26_3" author="Sven Siggelkow" ctrl="force" easy="false" id="ss4" rel="3" rev="4" score="3" target="time" unit="duration"/>
<level _seq="26" _title="Bank-O-Mat" _xpath="./esprit26_4" author="Sven Siggelkow" ctrl="force" easy="false" id="ss4" rel="4" rev="5" score="4" target="time" unit="duration"/>
<level _seq="27" _title="esprit 27" _xpath="./esprit27_1" author="Sven Siggelkow" ctrl="force" easy="false" id="ss_esp27" rel="1" rev="0" score="1" target="time" unit="duration"/>
<level _seq="28" _title="esprit 28" _xpath="./esprit28_1" author="Sven Siggelkow" ctrl="force" easy="false" id="ss_esp28" rel="1" rev="0" score="1" target="time" unit="duration"/>
<level _seq="29" _title="esprit 29" _xpath="./esprit29_1" author="Sven Siggelkow" ctrl="force" easy="false" id="ss_esp29" rel="1" rev="0" score="1" target="time" unit="duration"/>
Expand Down