X-Git-Url: https://jxself.org/git/?p=mudsync.git;a=blobdiff_plain;f=mudsync%2Froom.scm;h=6efac433f4c34b895c31a738511a53ac602ec3d7;hp=aaedd5ce6a15ff5297f3157aa7f52712b82cae65;hb=e8015ebb1351ace6536cfe04aab1e29c26f22366;hpb=5b9d1025df991e96148eeefe5fb9653e033e7f82 diff --git a/mudsync/room.scm b/mudsync/room.scm index aaedd5c..6efac43 100644 --- a/mudsync/room.scm +++ b/mudsync/room.scm @@ -66,7 +66,10 @@ (empty-command "go" 'cmd-go-where) (loose-direct-command "go" 'cmd-go) (greedy-command "say" 'cmd-say) - (greedy-command "emote" 'cmd-emote))) + (greedy-command "\"" 'cmd-say) + (greedy-command "'" 'cmd-say) + (greedy-command "emote" 'cmd-emote) + (greedy-command "/me" 'cmd-emote))) ;; TODO: Subclass from container? (define-class () @@ -152,9 +155,8 @@ "Handle looking around the room" ;; Get the room text (define room-text - (format #f "**~a**\n~a\n" - (slot-ref room 'name) - (slot-ref room 'desc))) + `((strong "=> " ,(slot-ref room 'name) " <=") + (p ,(slot-ref room 'desc)))) ;; Get a list of other things the player would see in the room (define occupant-names-all @@ -182,7 +184,8 @@ (define final-text (if occupant-names-string - (string-append room-text occupant-names-string) + `(,@room-text + (p (i ,occupant-names-string))) room-text)) (<- player-id 'tell @@ -257,7 +260,7 @@ (define player-name (mbody-val (<-wait (message-from message) 'get-name))) (define message-to-send - (format #f "~a says: ~a\n" player-name phrase)) + `((b "<" ,player-name ">") " " ,phrase)) (room-tell-room room message-to-send)) (define* (room-cmd-emote room message #:key phrase) @@ -265,7 +268,7 @@ (define player-name (mbody-val (<-wait (message-from message) 'get-name))) (define message-to-send - (format #f "* ~a ~a\n" player-name phrase)) + `((b "* " ,player-name) " " ,phrase)) (room-tell-room room message-to-send)) (define* (room-announce-entrance room message #:key who-entered)