diff options
author | Treeki <treeki@gmail.com> | 2012-07-25 00:36:42 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-07-25 00:36:42 +0200 |
commit | faaa82bd81f24fc897a5d0ae912381413625ddeb (patch) | |
tree | b576338c35666e1b44810cec81bd07d5a185f509 /src/mapdata.py | |
parent | 1a7f17d93189ae9981ff286d67c9b0406e99ce96 (diff) | |
download | koopatlas-faaa82bd81f24fc897a5d0ae912381413625ddeb.tar.gz koopatlas-faaa82bd81f24fc897a5d0ae912381413625ddeb.zip |
moving to desktop
Diffstat (limited to '')
-rw-r--r-- | src/mapdata.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mapdata.py b/src/mapdata.py index c32bd7b..0332280 100644 --- a/src/mapdata.py +++ b/src/mapdata.py @@ -451,7 +451,7 @@ class KPNode(object): @mapfile.dumpable('path') class KPPath(object): - __dump_attribs__ = ('unlocks', 'secret', 'animation', 'movementSpeed') + __dump_attribs__ = ('unlockSpec', 'animation', 'movementSpeed') def _dump(self, mapObj, dest): dest['startNodeLink'] = mapObj.refNode(self._startNodeRef()) @@ -476,8 +476,7 @@ class KPPath(object): startNode.exits.append(self) endNode.exits.append(self) - self.unlocks = 0 # 0 = always unlocked, 1 = unlocked from startNode, 2 = unlocked from endNode - self.secret = 0 # 0 = unlocks from normal exit, 1 = unlocks from secret exit + self.unlockSpec = None # always unlocked, by default if cloneFrom is None: self.animation = 0 |