diff options
| author | historia <[not public]> | 2026-09-16 17:05:17 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 17:05:17 -0400 |
| commit | 1dad15698845d370e998f7cc5feb8aece3fab58f (patch) | |
| tree | 8d58058782de9f422573e1f8efd5d130ce7d1ce9 /internal/game/look_entities.go | |
| parent | a6cf03a6ae98e4fb675da25046d148e92bcf7206 (diff) | |
| download | thehouseoficarus-1dad15698845d370e998f7cc5feb8aece3fab58f.tar.gz | |
refactor: remove dead code, consolidate save/error handling, add lint gate
Diffstat (limited to 'internal/game/look_entities.go')
| -rw-r--r-- | internal/game/look_entities.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/look_entities.go b/internal/game/look_entities.go index 0d08551..70077a3 100644 --- a/internal/game/look_entities.go +++ b/internal/game/look_entities.go @@ -13,7 +13,7 @@ import ( ) func (g *Game) showRoomMobs(sess *net.Session, p *player.Player, room *world.Room) []string { - mobs := g.MobStore.MobsInRoom(p.RoomID) + mobs := g.MobStore.MobsInRoom(room.ID) if len(mobs) == 0 { return nil } @@ -105,7 +105,7 @@ func (g *Game) showRoomObjects(sess *net.Session, p *player.Player, room *world. if p.GodMode { var tags []string tagLabel := func(t string) string { - return color.Render(g.colorMode(sess), g.resolveConstant(sess, "god_tag_label"), t) + return color.Render(g.colorMode(sess), g.resolveConstant("god_tag_label"), t) } if isLocal { tags = append(tags, tagLabel("[LOCAL]")) @@ -259,7 +259,7 @@ func casinoGameLabel(game casino.GameName) string { } func (g *Game) showGroundItems(sess *net.Session, p *player.Player, room *world.Room) []string { - ground := g.World.GroundItemsDetailed(p.RoomID) + ground := g.World.GroundItemsDetailed(room.ID) if len(ground) == 0 { return nil } @@ -381,7 +381,7 @@ func (g *Game) showGroundItems(sess *net.Session, p *player.Player, room *world. } func (g *Game) showRoomPlayers(sess *net.Session, p *player.Player, room *world.Room) { - others := g.Hub.PlayersInRoom(p.RoomID) + others := g.Hub.PlayersInRoom(room.ID) for _, other := range others { if other != sess && other.Player != nil { op := other.Player |
