From 82c025b3f3e5cac82800ab9d7f11dcb4e3aa884b Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 28 Jun 2026 04:05:58 -0400 Subject: fix: removed god mode speed limit, fixed hidden objects in god mode --- data/rooms/intro/1003.yaml | 19 ++++++++++++++++--- data/rooms/intro/1004.yaml | 15 +++++++++++++++ internal/game/cmd_move.go | 3 +++ internal/game/look_entities.go | 6 +++--- 4 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 data/rooms/intro/1004.yaml diff --git a/data/rooms/intro/1003.yaml b/data/rooms/intro/1003.yaml index fba85c6..d19b0b6 100644 --- a/data/rooms/intro/1003.yaml +++ b/data/rooms/intro/1003.yaml @@ -1,4 +1,17 @@ -name: "Customs Building" -description: "A cramped customs checkpoint lit by flickering panels. Officials in grey uniforms wave the new arrivals through, one at a time. (This area is still under construction.)" +id: 1003 +name: Customs Building +color: "" +description: + - text: A cramped customs checkpoint lit by flickering panels. Officials in grey uniforms wave the new arrivals through, one at a time. (This area is still under construction.) exits: - south: 1002 + north: + room: 1004 + south: + room: 1002 +objects: [] +item_spawns: [] +mobs: [] +on_enter: [] +hazard: "" +block_transport: false +triggers: [] diff --git a/data/rooms/intro/1004.yaml b/data/rooms/intro/1004.yaml new file mode 100644 index 0000000..72cc0e2 --- /dev/null +++ b/data/rooms/intro/1004.yaml @@ -0,0 +1,15 @@ +id: 0 +name: New Room +color: "" +description: + - text: A featureless room. +exits: + south: + room: 1003 +objects: [] +item_spawns: [] +mobs: [] +on_enter: [] +hazard: "" +block_transport: false +triggers: [] diff --git a/internal/game/cmd_move.go b/internal/game/cmd_move.go index 54c94c4..f12c494 100644 --- a/internal/game/cmd_move.go +++ b/internal/game/cmd_move.go @@ -106,6 +106,9 @@ var gracefulItems = map[string]bool{ } func (g *Game) moveTicks(p *player.Player, multiplier float64) int { + if p.GodMode { + return 0 + } if id, ok := p.Equipment[item.SlotBack]; ok && id == "cape_of_agility" { return 0 } diff --git a/internal/game/look_entities.go b/internal/game/look_entities.go index 2a9a360..3b0758b 100644 --- a/internal/game/look_entities.go +++ b/internal/game/look_entities.go @@ -105,12 +105,12 @@ func (g *Game) showRoomObjects(sess *net.Session, p *player.Player, room *world. if p.GodMode { var tags []string if isLocal { - tags = append(tags, color.Render(g.colorMode(sess), color.ColorSpec{Bold: true}, "[LOCAL]")) + tags = append(tags, color.Render(g.colorMode(sess), color.ColorSpec{Fg: -1, Bold: true}, "[LOCAL]")) } else { - tags = append(tags, color.Render(g.colorMode(sess), color.ColorSpec{Bold: true}, "[GLOBAL]")) + tags = append(tags, color.Render(g.colorMode(sess), color.ColorSpec{Fg: -1, Bold: true}, "[GLOBAL]")) } if def.Hidden { - tags = append(tags, color.Render(g.colorMode(sess), color.ColorSpec{Bold: true}, "(HIDDEN)")) + tags = append(tags, color.Render(g.colorMode(sess), color.ColorSpec{Fg: -1, Bold: true}, "(HIDDEN)")) } godPrefix = strings.Join(tags, " ") + " " } -- cgit v1.2.3