mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-26 21:46:51 +01:00
Fixes #7327
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user