From 9f63f92b5a85a2de67a86a6a84012ffa5f1c9576 Mon Sep 17 00:00:00 2001 From: rebecca Date: Sun, 1 Mar 2026 09:24:01 +0000 Subject: beescroll --- beescroll.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/beescroll.lua b/beescroll.lua index fd350a7..5ac1c20 100644 --- a/beescroll.lua +++ b/beescroll.lua @@ -115,17 +115,20 @@ local function regular_item() choice(cities), norm_color, "."} end + +local function some_item() + if math.random()<0.05 then return news_item() else return regular_item() end +end + for _ = 1,H do m.scroll(1) m.setCursorPos(1,H) - f_write(m,news_item(), false) + f_write(m,some_item(), false) end while true do m.scroll(1) m.setCursorPos(1,H) - local it - if math.random()<0.05 then it = news_item() else it = regular_item() end - f_write(m, it, true) + f_write(m, some_item(), true) os.sleep(math.random(5,100)/10) end -- cgit v1.2.3