Refactors /obj/item/apc_frame to /obj/item/frame/apc

- This fixes broken APC frame placement on walls - #9537
This commit is contained in:
Atlantis
2015-06-07 06:26:10 +02:00
parent 2da0a5e979
commit 41d4c2eb13
4 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -1,19 +1,19 @@
// APC HULL
/obj/item/apc_frame
/obj/item/frame/apc
name = "\improper APC frame"
desc = "Used for repairing or building APCs"
icon = 'icons/obj/apc_repair.dmi'
icon_state = "apc_frame"
flags = CONDUCT
/obj/item/apc_frame/attackby(obj/item/weapon/W as obj, mob/user as mob)
/obj/item/frame/apc/attackby(obj/item/weapon/W as obj, mob/user as mob)
..()
if (istype(W, /obj/item/weapon/wrench))
new /obj/item/stack/material/steel( get_turf(src.loc), 2 )
qdel(src)
/obj/item/apc_frame/proc/try_build(turf/on_wall)
/obj/item/frame/apc/try_build(turf/on_wall)
if (get_dist(on_wall,usr)>1)
return
var/ndir = get_dir(usr,on_wall)