diff options
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 |
