aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_room_insert.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-06 23:05:04 -0400
committerhistoria <[not public]>2026-07-06 23:05:04 -0400
commit9292634f2f8d71a53879ff07e1330c671b207d51 (patch)
treedcffadf7f697e8ad0705d787d8f599bdeeedb812 /internal/game/cmd_room_insert.go
parent911aae15f4e869c93239ef7c630c61e1d9d4ef3f (diff)
downloadthehouseoficarus-9292634f2f8d71a53879ff07e1330c671b207d51.tar.gz
feat: split the concept of hidden and impassable exits. add player_flag for discovered hidden exits.
Diffstat (limited to 'internal/game/cmd_room_insert.go')
-rw-r--r--internal/game/cmd_room_insert.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/cmd_room_insert.go b/internal/game/cmd_room_insert.go
index 5c24d60..988cd08 100644
--- a/internal/game/cmd_room_insert.go
+++ b/internal/game/cmd_room_insert.go
@@ -151,6 +151,8 @@ func (g *Game) roomInsert(sess *net.Session, args []string) {
BlockedMessage: exitDef.BlockedMessage,
SetFlags: exitDef.SetFlags,
SetPlayerFlags: exitDef.SetPlayerFlags,
+ Hidden: exitDef.Hidden,
+ AlwaysBlocked: exitDef.AlwaysBlocked,
}
curData, err := yaml.Marshal(curRoom)
if err != nil {
@@ -169,6 +171,8 @@ func (g *Game) roomInsert(sess *net.Session, args []string) {
BlockedMessage: targetExit.BlockedMessage,
SetFlags: targetExit.SetFlags,
SetPlayerFlags: targetExit.SetPlayerFlags,
+ Hidden: targetExit.Hidden,
+ AlwaysBlocked: targetExit.AlwaysBlocked,
}
}
targetPath, tok2 := g.World.GetRoomPath(targetID)