summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2014-07-17 18:12:27 +0200
committerWuzzy <almikes@aol.com>2014-07-17 18:12:27 +0200
commit7bfd30ce392ace5b4795fab2dcb63926cf02ea67 (patch)
tree75b5b2d9c74aae26877ecb6be4777e2cab1146d6
parent5bc2ba600ca8e6c5c49b7a027e715ecfc344c8a9 (diff)
Use random time for stress test effects
-rw-r--r--examples.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples.lua b/examples.lua
index 7c2102c..0a510d8 100644
--- a/examples.lua
+++ b/examples.lua
@@ -211,7 +211,7 @@ minetest.register_chatcommand("stresstest", {
end
minetest.debug("[playereffects] Stress test started for "..name.." with "..max.." effects.")
for i=1,max do
- playereffects.apply_effect_type("stress", 10, player)
+ playereffects.apply_effect_type("stress", math.random(6,60), player)
if(i%100==0) then
minetest.debug("[playereffects] Effect "..i.." of "..max.." applied.")
minetest.chat_send_player(name, "[playereffects] Effect "..i.." of "..max.." applied.")