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