# HG changeset patch # User Simon Cross # Date 1302288065 -7200 # Node ID 8cac6ff88a9d9517c96e282043fa8f8335798d49 # Parent ed2bd6eb65e7f8757cc479d43aff5916918f032b Rename the void level to _limbo. Add teacupfull to _limbo. Change monk state change check to world.fox.item == 'teacupfull'. diff -r ed2bd6eb65e7 -r 8cac6ff88a9d data/game.json --- a/data/game.json Fri Apr 08 20:15:18 2011 +0200 +++ b/data/game.json Fri Apr 08 20:41:05 2011 +0200 @@ -12,6 +12,7 @@ "tealeaf": { "type": "TeaLeaf", "level": "temple", "pos": [1, 7] }, "teacup": { "type": "TeaCup", "level": "temple", "pos": [18, 10] }, "teapot": { "type": "TeaPot", "level": "temple", "pos": [13, 2] }, + "teacupfull": { "type": "TeaCupFull", "level": "_limbo", "pos": [0, 0] }, "vase": { "type": "Vase", "level": "geisha_room", "pos": [1, 3], "broken": false } }, "npcs": { diff -r ed2bd6eb65e7 -r 8cac6ff88a9d data/npcs/monk.json --- a/data/npcs/monk.json Fri Apr 08 20:15:18 2011 +0200 +++ b/data/npcs/monk.json Fri Apr 08 20:41:05 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.item == 'tea'", "next": "state.got_tea" } ] }, "got_tea" : { diff -r ed2bd6eb65e7 -r 8cac6ff88a9d skaapsteker/sprites/player.py --- a/skaapsteker/sprites/player.py Fri Apr 08 20:15:18 2011 +0200 +++ b/skaapsteker/sprites/player.py Fri Apr 08 20:41:05 2011 +0200 @@ -296,7 +296,7 @@ if my_item is not None: print "I already have", my_item return - getattr(self.the_world.items, item.name).level = "gone" + getattr(self.the_world.items, item.name).level = "_limbo" self.the_world.fox.item = item.name item.kill() print "took", item