diff options
| author | historia <[not public]> | 2026-06-28 02:40:30 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-28 02:40:30 -0400 |
| commit | a1b6613c6c6a2f8d6e1ecd47e766bd40f92ac295 (patch) | |
| tree | 4ff8fefb029c93f2aa3db7361658b0b4e9805b66 /internal/game/cmd_move.go | |
| parent | 87dacfbb3dd16e7f55a82361eace98f9a39d75c8 (diff) | |
| download | thehouseoficarus-a1b6613c6c6a2f8d6e1ecd47e766bd40f92ac295.tar.gz | |
feat: admin accounts, god mode, OLC commands like dig/room, 'inline' objects changed to 'local' objects
Diffstat (limited to 'internal/game/cmd_move.go')
| -rw-r--r-- | internal/game/cmd_move.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_move.go b/internal/game/cmd_move.go index 4bf227c..54c94c4 100644 --- a/internal/game/cmd_move.go +++ b/internal/game/cmd_move.go @@ -31,7 +31,7 @@ func (g *Game) doMove(sess *net.Session, dir string, multiplier float64) { return } - if exitDef.Condition != nil && !g.checkCondition(sess, exitDef.Condition) { + if !p.GodMode && exitDef.Condition != nil && !g.checkCondition(sess, exitDef.Condition) { msg := exitDef.BlockedMessage if msg == "" { msg = fmt.Sprintf("The way %s is blocked.", exitDir) @@ -247,8 +247,8 @@ func (g *Game) seedRoomObjects(roomID int) { g.World.EnsureObjectStates(roomID, ids) for _, obj := range room.Objects { var def *object.ObjectDef - if obj.Inline != nil { - def = obj.Inline + if obj.Local != nil { + def = obj.Local } else { var err error def, err = g.ObjectStore.Load(obj.ID) |
