aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_room_insert.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-08 19:59:14 -0400
committerhistoria <[not public]>2026-07-08 19:59:14 -0400
commit09d325dcf5e779eab5550d3fd3377bde50101428 (patch)
treea433be903aabbf1d2eadce2aacdac12a9eb8dde0 /internal/game/cmd_room_insert.go
parent9184377301c2604e003f36426788c032fb0ca524 (diff)
downloadthehouseoficarus-09d325dcf5e779eab5550d3fd3377bde50101428.tar.gz
feat: unify on use, on look, and on kill. all support same conditions/actions now.
Diffstat (limited to 'internal/game/cmd_room_insert.go')
-rw-r--r--internal/game/cmd_room_insert.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/game/cmd_room_insert.go b/internal/game/cmd_room_insert.go
index b248e49..15b05ef 100644
--- a/internal/game/cmd_room_insert.go
+++ b/internal/game/cmd_room_insert.go
@@ -138,8 +138,7 @@ func (g *Game) roomInsert(sess *net.Session, args []string) {
Room: newID,
Condition: exitDef.Condition,
BlockedMessage: exitDef.BlockedMessage,
- SetGlobalFlags: exitDef.SetGlobalFlags,
- SetPlayerFlags: exitDef.SetPlayerFlags,
+ OnTraverse: exitDef.OnTraverse,
Hidden: exitDef.Hidden,
AlwaysBlocked: exitDef.AlwaysBlocked,
}
@@ -158,8 +157,7 @@ func (g *Game) roomInsert(sess *net.Session, args []string) {
Room: newID,
Condition: targetExit.Condition,
BlockedMessage: targetExit.BlockedMessage,
- SetGlobalFlags: targetExit.SetGlobalFlags,
- SetPlayerFlags: targetExit.SetPlayerFlags,
+ OnTraverse: targetExit.OnTraverse,
Hidden: targetExit.Hidden,
AlwaysBlocked: targetExit.AlwaysBlocked,
}