Skip to content
Browse files

Fixed the mirror

  • Loading branch information...
1 parent 651b395 commit 9e232f777951fdd39ff374da14d621e2a02ec58b @almost almost committed Jun 24, 2012
Showing with 10 additions and 8 deletions.
  1. +1 −1 README.md
  2. +1 −1 client/js/script.js
  3. +8 −6 world/hallucinate.coffee
View
2 README.md
@@ -28,7 +28,7 @@ http://l4rp.com/
http://lanyrd.com/2012/l4rp-ta/
-Come help create a multi-player Text Adventure. We'll start with text and a storyline, and then add pictures to the scenes.
+Come help create a multi-player Text Adventure. We'll start with text and a storyline, and then maybe add pictures to the scenes.
Non-programmers are welcome - we need ideas, words, artwork, design and all sorts of creativity...
View
2 client/js/script.js
@@ -177,7 +177,7 @@ function mirror() {
$('html').addClass("mirror");
}
-function mirror() {
+function unmirror() {
$('html').removeClass("mirror");
}
View
14 world/hallucinate.coffee
@@ -1,6 +1,8 @@
-handler "invuse:mirror", (rest, player, game) ->
- player.write {effect: "mirror"}
- player.write "Hi, Sexy"
-
-handler "invdrop:mirror", (rest, player, game) ->
- player.write {effect: "unmirror"}
+itemCommand 'use', 'mirror', (rest, player, game) ->
+ if player.mirrored
+ player.mirrored = false
+ player.write {effect: "unmirror"}
+ else
+ player.mirrored = true
+ player.write {effect: "mirror"}
+ player.write "Hi, Sexy"

0 comments on commit 9e232f7

Please sign in to comment.
Something went wrong with that request. Please try again.