From 4cc1ddcd185509080b4b3e15d1646567edd51c9d Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 15 Jun 2026 02:57:35 -0400 Subject: removed game speed for being broken and an antifeature anyway. added color support. --- internal/world/world.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'internal/world') diff --git a/internal/world/world.go b/internal/world/world.go index a554432..7768739 100644 --- a/internal/world/world.go +++ b/internal/world/world.go @@ -577,17 +577,18 @@ func (w *World) TickObjWander() { continue } st.WanderCounter++ - if float64(st.WanderCounter) >= st.WanderInterval { - st.WanderCounter = 0 - toRoom := st.WanderRooms[rand.Intn(len(st.WanderRooms))] - if toRoom == st.RoomID { - continue - } - moves = append(moves, struct { - st *ObjState - toRoom int - }{st, toRoom}) + if float64(st.WanderCounter) < st.WanderInterval { + continue + } + st.WanderCounter = 0 + toRoom := st.WanderRooms[rand.Intn(len(st.WanderRooms))] + if toRoom == st.RoomID { + continue } + moves = append(moves, struct { + st *ObjState + toRoom int + }{st, toRoom}) } for _, m := range moves { oldKey := w.objStateKey(m.st.RoomID, m.st.DefID, m.st.Index) -- cgit v1.2.3