This commit is contained in:
Zuhayr
2014-12-27 10:01:17 +10:30
parent 36d5525437
commit 931682f926
2 changed files with 9 additions and 2 deletions
+7 -2
View File
@@ -1,6 +1,6 @@
//Contains the rapid construction device.
/obj/item/weapon/rcd
name = "rapid construction device (RCD)"
name = "rapid construction device"
desc = "A device used to rapidly build walls and floors."
icon = 'icons/obj/items.dmi'
icon_state = "rcd"
@@ -23,6 +23,9 @@
var/canRwall = 0
var/disabled = 0
/obj/item/weapon/rcd/attack()
return 0
/obj/item/weapon/rcd/examine()
..()
if(src.type == /obj/item/weapon/rcd && loc == usr)
@@ -96,7 +99,7 @@
else if(deconstruct && istype(T,/turf/simulated/wall))
build_delay = deconstruct ? 50 : 40
build_cost = 5
build_type = (canRwall && istype(T,/turf/simulated/wall/r_wall)) ? "wall" : null
build_type = (!canRwall && istype(T,/turf/simulated/wall/r_wall)) ? null : "wall"
build_turf = /turf/simulated/floor
else if(istype(T,/turf/simulated/floor))
build_delay = deconstruct ? 50 : 20
@@ -124,6 +127,8 @@
return 0
working = 0
if(build_delay && (!user.Adjacent(T) || user.get_active_hand() != src || user.stat || user.restrained()))
return 0
if(build_turf)
T.ChangeTurf(build_turf)