Removes a few spawns

This commit is contained in:
CitadelStationBot
2017-04-25 14:36:18 -05:00
parent 306e7c1cba
commit a96ba5aae3
5 changed files with 10 additions and 19 deletions

View File

@@ -14,8 +14,7 @@
if(T.density)//Don't want them shooting nets through walls. It's kind of cheesy.
to_chat(H, "<span class='warning'>You may not use an energy net through solid obstacles!</span>")
return
spawn(0)
H.Beam(C,"n_beam",time=15)
H.Beam(C,"n_beam",time=15)
H.say("Get over here!")
var/obj/structure/energy_net/E = new /obj/structure/energy_net(C.loc)
H.visible_message("<span class='danger'>[H] caught [C] with an energy net!</span>","<span class='notice'>You caught [C] with an energy net!</span>")

View File

@@ -28,11 +28,9 @@
var/dirs = 0
/obj/machinery/am_shielding/New(loc)
..(loc)
spawn(10)
controllerscan()
return
/obj/machinery/am_shielding/Initialize()
. = ..()
addtimer(CALLBACK(src, .proc/controllerscan), 10)
/obj/machinery/am_shielding/proc/controllerscan(priorscan = 0)
@@ -59,11 +57,9 @@
if(!control_unit)
if(!priorscan)
spawn(20)
controllerscan(1)//Last chance
addtimer(CALLBACK(src, .proc/controllerscan, 1), 20)
return
qdel(src)
return
/obj/machinery/am_shielding/Destroy()

View File

@@ -107,8 +107,7 @@
if(!modules || !modules.len)
return
for(var/datum/mapGeneratorModule/mod in modules)
spawn(0)
mod.generate()
INVOKE_ASYNC(mod, /datum/mapGeneratorModule.proc/generate)
//Requests the mapGeneratorModule(s) to (re)generate this one turf
@@ -119,8 +118,7 @@
if(!modules || !modules.len)
return
for(var/datum/mapGeneratorModule/mod in modules)
spawn(0)
mod.place(T)
INVOKE_ASYNC(mod, /datum/mapGeneratorModule.proc/place, T)
//Replaces all paths in the module list with actual module datums

View File

@@ -175,8 +175,7 @@
else if(G.can_trigger_gun(user))
bonus_spread += 24 * G.weapon_weight
loop_counter++
spawn(loop_counter)
G.process_fire(target,user,1,params, null, bonus_spread)
addtimer(CALLBACK(G, /obj/item/weapon/gun.proc/process_fire, target, user, 1, params, null, bonus_spread), loop_counter)
process_fire(target,user,1,params, null, bonus_spread)

View File

@@ -14,9 +14,8 @@
revert_cast()
return
invocation(thearea,user)
spawn(0)
if(charge_type == "recharge" && recharge)
start_recharge()
if(charge_type == "recharge" && recharge)
INVOKE_ASYNC(src, .proc/start_recharge)
cast(targets,thearea,user)
after_cast(targets)