fix limitations of .marble
parent
2f38ed3f43
commit
6a0d9aa9b0
|
@ -34,16 +34,14 @@ class Mod_Fun < Vrobot4::Module::Module
|
||||||
end
|
end
|
||||||
|
|
||||||
def c_marble m, argv
|
def c_marble m, argv
|
||||||
check_args argv, "N"
|
if argv.empty? then n = rand(20)
|
||||||
|
|
||||||
if argv.empty? then n = 20
|
|
||||||
else n = argv.to_i end
|
else n = argv.to_i end
|
||||||
|
|
||||||
if m.serv.flags.include? ?L and n > 200 then n = 200
|
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
|
text = ?m
|
||||||
for i in (0..rand(n) + 1)
|
n.times do ||
|
||||||
text << [?a, ?r, ?u].sample
|
text << [?a, ?r, ?u].sample
|
||||||
end
|
end
|
||||||
text << ?b
|
text << ?b
|
||||||
|
|
Loading…
Reference in New Issue