Changeset 237:e06c54d7701f


Ignore:
Timestamp:
04/07/11 12:39:50 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Message:

Add vase to demonstrate item state testing in dialogues.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • data/game.json

    r226 r237  
    1111        "tealeaf": { "type": "TeaLeaf", "level": "temple", "pos": [1, 7] },
    1212        "teacup": { "type": "TeaCup", "level": "temple", "pos": [18, 10] },
    13         "teapot": { "type": "TeaPot", "level": "temple", "pos": [13, 2] }
     13        "teapot": { "type": "TeaPot", "level": "temple", "pos": [13, 2] },
     14        "vase": { "type": "Vase", "level": "level2", "pos": [1, 3], "broken": false }
    1415    },
    1516    "npcs": {
  • data/npcs/kumiko.json

    r193 r237  
    77        "text" : "The room smells fresh, I have my best kimono on and I’ve set out my most magnificent vase. Everything is perfect (just like me)!",
    88        "events" : [
    9             { "matches" : "world.vase_broken", "next": "state.broken" }
     9            { "matches" : "world.items.vase.broken", "next": "state.broken" }
    1010        ]
    1111    },
  • skaapsteker/sprites/items.py

    r191 r237  
    1717    image_file = 'teapot.png'
    1818    portable = False
     19
     20
     21class Vase(Item):
     22    image_file = 'dummy.png'
     23
     24    def setup(self, broken, **opts):
     25        super(Vase, self).setup(**opts)
     26        self.broken = broken
Note: See TracChangeset for help on using the changeset viewer.