projects
/
mudsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5650e14
)
some example room commands
author
Christopher Allan Webber
<cwebber@dustycloud.org>
Mon, 2 May 2016 16:03:21 +0000
(11:03 -0500)
committer
Christopher Allan Webber
<cwebber@dustycloud.org>
Mon, 2 May 2016 16:03:21 +0000
(11:03 -0500)
mudsync.scm
patch
|
blob
|
history
diff --git
a/mudsync.scm
b/mudsync.scm
index 5dd58b114674d023bde888e4950d7d441ddf73c6..a15f5b9a02ea2a1f221129e2078832c9e18f3bde 100644
(file)
--- a/
mudsync.scm
+++ b/
mudsync.scm
@@
-485,7
+485,14
@@
with an anonymous persona"
(hash-remove! (slot-ref actor 'occupants) who))
(wire-exits! (wrap-apply room-wire-exits!)))))
-(define %room-contain-commands 'TODO)
+(define always (const #t))
+
+(define %room-contain-commands
+ (list
+ (command "look" cmatch-just-verb always 'look-room)
+ (command "look" cmatch-direct-obj always 'look-member)
+ (command "go" cmathc-just-verb always 'go-where)
+ (command "go" cmatch-direct-obj always 'go-exit)))
(define (room-wire-exits! room message)