changeset 198:4e7ca5cf57fa

syntax fix for accessing world properties
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Wed, 06 Apr 2011 22:15:44 +0200
parents 6696ffd51ac2
children 2b4de243e9f2
files data/npcs/actor.json data/npcs/guard.json data/npcs/monk.json data/npcs/sasuke.json
diffstat 4 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/data/npcs/actor.json	Wed Apr 06 22:07:00 2011 +0200
+++ b/data/npcs/actor.json	Wed Apr 06 22:15:44 2011 +0200
@@ -6,7 +6,7 @@
     "bother" : {
         "text" : "“Upon a thousand heights had gathered the inexplicable cloud. Swept by, uh... the rain, the moon is just come to light the high house. A clean and... and...” Oh bother, this is hard.",
         "events" : [
-            { "matches" : "world.masks_destroyed()", "next": "state.no" }
+            { "matches" : "world.masks_destroyed", "next": "state.no" }
         ]
     },
     "no" : {
--- a/data/npcs/guard.json	Wed Apr 06 22:07:00 2011 +0200
+++ b/data/npcs/guard.json	Wed Apr 06 22:15:44 2011 +0200
@@ -2,8 +2,8 @@
     "start" : {
         "text" : "Shoo, filthy fox! How did you get in here?",
         "events" : [
-            { "matches" : "world.fox_is_shapeshifted()", "next": "state.shapeshifted" },
-            { "matches" : "world.fox_is_disguised()", "next": "state.disguised" }
+            { "matches" : "world.fox_is_shapeshifted", "next": "state.shapeshifted" },
+            { "matches" : "world.fox_is_disguised", "next": "state.disguised" }
         ]
     },
     "shapeshifted" : {
@@ -14,7 +14,7 @@
             { "text": "Sayonara.", "next": "state.secondtry" }
         ],
         "events" : [
-            { "matches" : "world.fox_is_disguised()", "next": "state.disguised" }
+            { "matches" : "world.fox_is_disguised", "next": "state.disguised" }
         ]
     },
     "monks" : {
@@ -34,7 +34,7 @@
     "secondtry" : {
         "text" : "The gate is locked, and it’s staying locked.",
         "events" : [
-            { "matches" : "world.fox_is_disguised()", "next": "state.disguised" }
+            { "matches" : "world.fox_is_disguised", "next": "state.disguised" }
         ]
     },
     "disguised" : {
--- a/data/npcs/monk.json	Wed Apr 06 22:07:00 2011 +0200
+++ b/data/npcs/monk.json	Wed Apr 06 22:15:44 2011 +0200
@@ -19,7 +19,7 @@
     "no_tea" : {
         "text" : "Oh, what I wouldn’t do for a cup of tea.",
         "events" : [
-            { "matches" : "world.fox_has_tea()", "next": "state.got_tea" }
+            { "matches" : "world.fox_has_tea", "next": "state.got_tea" }
         ]
     },
     "got_tea" : {
--- a/data/npcs/sasuke.json	Wed Apr 06 22:07:00 2011 +0200
+++ b/data/npcs/sasuke.json	Wed Apr 06 22:15:44 2011 +0200
@@ -5,7 +5,7 @@
     },
     "napping" : {
         "events" : [
-            { "matches" : "world.cannon_destroyed()", "next": "state.huh" }
+            { "matches" : "world.cannon_destroyed", "next": "state.huh" }
         ]
     },
     "huh" : {