Prison break refactor, Requests Console refactor

This commit is contained in:
Markolie
2015-07-29 00:12:44 +02:00
parent 398bd40dfe
commit 69f7e04719
13 changed files with 409 additions and 406 deletions
+4 -3
View File
@@ -1308,15 +1308,16 @@ obj/machinery/power/apc/proc/autoset(var/val, var/on)
// overload all the lights in this APC area
/obj/machinery/power/apc/proc/overload_lighting()
/obj/machinery/power/apc/proc/overload_lighting(var/chance = 100)
if(/* !get_connection() || */ !operating || shorted)
return
if( cell && cell.charge>=20)
cell.use(20);
spawn(0)
for(var/obj/machinery/light/L in area)
L.on = 1
L.broken()
if(prob(chance))
L.on = 1
L.broken()
sleep(1)
/obj/machinery/power/apc/Destroy()