home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug sending THING_CARRYING to clients who don't know about the carrying Thing...
[plomrogue2]
/
plomrogue
/
things.py
diff --git
a/plomrogue/things.py
b/plomrogue/things.py
index 895f5ce98938515e84670aa89b05694b01c6fbac..d348e8400df1239d0105995f1193689dd132cd09 100644
(file)
--- a/
plomrogue/things.py
+++ b/
plomrogue/things.py
@@
-128,17
+128,22
@@
class Thing_Door(Thing):
symbol_hint = 'D'
blocking = False
portable = True
symbol_hint = 'D'
blocking = False
portable = True
+ installable = True
def open(self):
self.blocking = False
def open(self):
self.blocking = False
- self.portable = True
del self.thing_char
def close(self):
self.blocking = True
del self.thing_char
def close(self):
self.blocking = True
- self.portable = False
self.thing_char = '#'
self.thing_char = '#'
+ def install(self):
+ self.portable = False
+
+ def uninstall(self):
+ self.portable = True
+
class Thing_Bottle(Thing):
class Thing_Bottle(Thing):