mirror of
https://repo.or.cz/minetest_playereffects.git
synced 2025-01-08 10:20:15 +01:00
Use random time for stress test effects
This commit is contained in:
parent
5bc2ba600c
commit
7bfd30ce39
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user