Skip to content

Commit

Permalink
data/test: Remove extraneous variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pmer committed Apr 26, 2017
1 parent b887044 commit 7273b7c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions data/test/blue1.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
def setup():
a = Driftwood.light.insert("lightmap_vertical1.png", 2, 2, 80, 50, 160, "000000FF", blend=True)
b = Driftwood.light.insert("lightmap_vertical1.png", 2, 158, 80, 50, 160, "000000FF", blend=True)
if "got_blue_pearl" in Driftwood.database and "end_rumble" in Driftwood.vars and Driftwood.vars["end_rumble"]:
if "got_blue_pearl" in Driftwood.database:
Driftwood.script.call("stdlib/viewport.py", "end_rumble")
Driftwood.vars["end_rumble"] = "true"
Driftwood.script.call("stdlib/viewport.py", "rumble", 10, 3, None)

h = Driftwood.widget.container(x=-1, y=-1, width=80, height=80)
Expand Down
4 changes: 1 addition & 3 deletions data/test/blue2.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ def lights():
Driftwood.script.call("stdlib/light.py", "flicker", c.lid, 0, 0, 64, 16)

else:
if "end_rumble" in Driftwood.vars and Driftwood.vars["end_rumble"]:
Driftwood.script.call("stdlib/viewport.py", "end_rumble")
Driftwood.vars["end_rumble"] = "true"
Driftwood.script.call("stdlib/viewport.py", "end_rumble")
Driftwood.script.call("stdlib/viewport.py", "rumble", 30, 2, None)
Driftwood.light.reset()
a = Driftwood.light.insert("lightmap_circle1.png", 2, 80, 56, 160, 160, "FFFFFFFF", blend=False)
Expand Down
1 change: 0 additions & 1 deletion data/test/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def init():
Driftwood.tick.register(rumble, delay=10.0)
else:
Driftwood.script.call("stdlib/viewport.py", "rumble", 12, 3, None)
Driftwood.vars["end_rumble"] = "true"


def rumble():
Expand Down

0 comments on commit 7273b7c

Please sign in to comment.