Fixes syndibeacons using the wrong processor (#24612)

This commit is contained in:
Cyberboss
2017-03-03 15:26:13 +01:00
committed by AnturK
parent 9771423512
commit 88a089dae6
+11 -13
View File
@@ -27,8 +27,6 @@
singulo.target = src
icon_state = "[icontype]1"
active = 1
machines |= src
START_PROCESSING(SSobj, src)
if(user)
user << "<span class='notice'>You activate the beacon.</span>"
@@ -84,18 +82,18 @@
//stealth direct power usage
/obj/machinery/power/singularity_beacon/process()
if(!active)
return PROCESS_KILL
return
if(surplus() > 1500)
add_load(1500)
if(cooldown <= world.time)
cooldown = world.time + 100
for(var/obj/singularity/singulo in singularities)
if(singulo.z == z)
say("The [singulo] is now [get_dist(src,singulo)] standard lengths away to the [dir2text(get_dir(src,singulo))]")
else
if(surplus() > 1500)
add_load(1500)
if(cooldown <= world.time)
cooldown = world.time + 100
for(var/obj/singularity/singulo in singularities)
if(singulo.z == z)
say("The [singulo] is now [get_dist(src,singulo)] standard lengths away to the [dir2text(get_dir(src,singulo))]")
else
Deactivate()
say("Insufficient charge detected - powering down")
Deactivate()
say("Insufficient charge detected - powering down")
/obj/machinery/power/singularity_beacon/syndicate