aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_room.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_room.go')
-rw-r--r--internal/game/cmd_room.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/game/cmd_room.go b/internal/game/cmd_room.go
index 971e298..3210ef5 100644
--- a/internal/game/cmd_room.go
+++ b/internal/game/cmd_room.go
@@ -51,6 +51,8 @@ func (g *Game) executeRoom(sess *net.Session, args []string, rawInput string) {
g.roomSetColor(sess, rest)
case "insert":
g.roomInsert(sess, rest)
+ case "remove":
+ g.roomRemove(sess, rest)
default:
sess.WriteLine(fmt.Sprintf("Unknown room action: %s", action))
g.showRoomHelp(sess)
@@ -73,6 +75,7 @@ func (g *Game) showRoomHelp(sess *net.Session) {
sess.WriteLine(" room remspawn <item_id> — remove an item spawn")
sess.WriteLine(" room color <spec|off> — set or clear room map color")
sess.WriteLine(" room insert <direction> [name] — insert a new room into the exit, pushing rooms beyond")
+ sess.WriteLine(" room remove <direction> — delete the inserted room and pull the far end back")
}
func (g *Game) roomSetName(sess *net.Session, args []string) {