mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Gets rid of another 400 sleep in init problems (#10306)
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5216d33ade
commit
1848c73edc
@@ -501,18 +501,14 @@
|
||||
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
|
||||
else if(!active) //The ball isn't set up, let's try to set it up.
|
||||
if(isliving(target)) //We're hitting a mob, let's try to capture it.
|
||||
sleep(10)
|
||||
activate(thrower, target)
|
||||
addtimer(CALLBACK(src, PROC_REF(activate), thrower, target), 10, TIMER_DELETE_ME)
|
||||
return
|
||||
sleep(10)
|
||||
activate(thrower, src)
|
||||
addtimer(CALLBACK(src, PROC_REF(activate), thrower, src), 10, TIMER_DELETE_ME)
|
||||
else if(!bound_mob) //We hit something else, and we don't have a mob, so we can't really do anything!
|
||||
to_chat(thrower, span_notice("\The [src] clicks unpleasantly..."))
|
||||
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
|
||||
else if(bound_mob in contents) //We have our mob! Let's try to let it out.
|
||||
sleep(10)
|
||||
unleash(thrower, src)
|
||||
update_icon()
|
||||
addtimer(CALLBACK(src, PROC_REF(unleash), thrower, src), 10, TIMER_DELETE_ME)
|
||||
else //Our mob isn't here, we can't do anything.
|
||||
to_chat(thrower, span_notice("\The [src] clicks unpleasantly..."))
|
||||
playsound(src, 'sound/effects/capture-crystal-negative.ogg', 75, 1, -1)
|
||||
|
||||
Reference in New Issue
Block a user