if(src.Summon_Speed)
var/A=1+src.Summon_Limit
while(A>=0)
var/mob/Bugs/Kekkai/S=new();src.Konchuu-=10
src.BugsInWorld.Add(S)
A++
if(S)
S.Vitality=25+(src.Destruction_Bug_Health*20);S.Max_Stamina=25+(src.Destruction_Bug_Health*20);S.Max_Vitality=S.Vitality
S.Owner=src
S.Physique=rand(20,50)
S.loc=locate(src.x, src.y, src.z)
S.pixel_x+=rand(-15,15);S.pixel_y+=rand(-15,15)
A--
sleep(2)
Problem description: I've tried few ways of trying to get the loop to cut off, but it doesn't seem to help :/ Overall the loop goes on and on spawning in hundreds of mobs at once, and it crashes the game.