proc/CoolDown()
while(1)
for(var/mob/user in world)
switch(user.characterrace)
if("Full-Saiyan" || "Icerian")
while(user.rage.value > 1)
user.rage.value--
user << "You calm down."
sleep(200)
break
if("Half-Saiyan")
if(user.characterroot == "Saiyan")
while(user.rage.value > 1)
user.rage.value--
user << "You calm down."
sleep(200)
break
if("Human" || "Namekian")
while(user.focus.value > 1)
user.focus.value--
user << "You lose focus."
sleep(200)
break
if("Half-Saiyan")
if(user.characterroot == "Human")
while(user.focus.value > 1)
user.rage.value--
user << "You lose focus."
sleep(200)
break
Problem description:
This is my CoolDown Proc that lowers the user's rage or focus, if it is still 1. But after it becomes 1, it still loops. Alittle help..