aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-28 04:05:58 -0400
committerhistoria <[not public]>2026-06-28 04:05:58 -0400
commit82c025b3f3e5cac82800ab9d7f11dcb4e3aa884b (patch)
tree98d9798e9deac2b41d951e369c9f1fcec2881a37
parenta1b6613c6c6a2f8d6e1ecd47e766bd40f92ac295 (diff)
downloadthehouseoficarus-82c025b3f3e5cac82800ab9d7f11dcb4e3aa884b.tar.gz
fix: removed god mode speed limit, fixed hidden objects in god mode
-rw-r--r--data/rooms/intro/1003.yaml19
-rw-r--r--data/rooms/intro/1004.yaml15
-rw-r--r--internal/game/cmd_move.go3
-rw-r--r--internal/game/look_entities.go6
4 files changed, 37 insertions, 6 deletions
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, " ") + " "
}