mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Applied Aranclanos's patch. http://www.nanotrasen.com/phpBB3/viewtopic.php?f=16&t=10099
Fixes issue 928 Fixes issue 936 Remove a small bit of code rot in robot_items.dm git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4768 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -148,13 +148,13 @@
|
||||
else
|
||||
disabled = 0
|
||||
if(!isrobot(user)|| disabled == 1) return
|
||||
if(!(istype(A, /turf) || istype(A, /obj/machinery/door/airlock))) return
|
||||
|
||||
var/mob/living/silicon/robot/R = user
|
||||
var/obj/item/weapon/cell/cell = R.cell
|
||||
|
||||
if(!cell) return
|
||||
|
||||
if(istype(A, /turf))
|
||||
if((istype(A, /turf) || istype(A, /obj/machinery/door/airlock)))
|
||||
switch(mode)
|
||||
if(1)
|
||||
if(istype(A, /turf/space))
|
||||
@@ -166,7 +166,7 @@
|
||||
|
||||
if(istype(A, /turf/simulated/floor))
|
||||
if(!cell.use(90)) return
|
||||
user << "Building Wall (3)..."
|
||||
user << "Building Wall ..."
|
||||
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
|
||||
if(do_after(user, 20))
|
||||
activate()
|
||||
@@ -180,7 +180,6 @@
|
||||
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
|
||||
if(do_after(user, 50))
|
||||
activate()
|
||||
if(locate(/obj/machinery/door) in get_turf(src)) return
|
||||
var/obj/machinery/door/airlock/T = new /obj/machinery/door/airlock( A )
|
||||
T.autoclose = 1
|
||||
return
|
||||
@@ -195,9 +194,6 @@
|
||||
A:ReplaceWithPlating()
|
||||
return
|
||||
|
||||
if(istype(A, /turf/simulated/wall/r_wall)) //by order of muskets -pete
|
||||
return
|
||||
|
||||
if(istype(A, /turf/simulated/floor))
|
||||
user << "Deconstructing Floor..."
|
||||
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
|
||||
@@ -210,7 +206,7 @@
|
||||
user << "Deconstructing Airlock..."
|
||||
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
|
||||
if(do_after(user, 50))
|
||||
playsound(src.loc, 'sound/machines/click.ogg', 50, 1)
|
||||
activate()
|
||||
del(A)
|
||||
return
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user