From 6a0d9aa9b0d6feefce9c9c93ed53bcede6fbc878 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Thu, 16 Jan 2020 20:46:18 -0500 Subject: [PATCH] fix limitations of .marble --- source/modules/fun.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/modules/fun.rb b/source/modules/fun.rb index fc3c3c6..28d4bae 100644 --- a/source/modules/fun.rb +++ b/source/modules/fun.rb @@ -34,16 +34,14 @@ class Mod_Fun < Vrobot4::Module::Module end def c_marble m, argv - check_args argv, "N" - - if argv.empty? then n = 20 + if argv.empty? then n = rand(20) else n = argv.to_i end if m.serv.flags.include? ?L and n > 200 then n = 200 - elsif n > 1000 then n = 1000 end + elsif n > 1900 then n = 1900 end text = ?m - for i in (0..rand(n) + 1) + n.times do || text << [?a, ?r, ?u].sample end text << ?b