[MIRROR] Fix unwrenching and placing directional signs (#6106)
* Fix unwrenching and placing directional signs * Merge pull request #36677 from AutomaticFrenzy/patch/sign-backings Fix unwrenching and placing directional signs
This commit is contained in:
committed by
Poojawa
parent
3fef96e3d1
commit
de697be536
@@ -39,6 +39,7 @@
|
||||
var/obj/item/sign_backing/SB = new (get_turf(user))
|
||||
SB.icon_state = icon_state
|
||||
SB.sign_path = type
|
||||
SB.setDir(dir)
|
||||
qdel(src)
|
||||
return
|
||||
else if(istype(I, /obj/item/pen) && buildable_sign)
|
||||
@@ -107,11 +108,22 @@
|
||||
user.visible_message("<span class='notice'>[user] fastens [src] to [T].</span>", \
|
||||
"<span class='notice'>You attach the sign to [T].</span>")
|
||||
playsound(T, 'sound/items/deconstruct.ogg', 50, 1)
|
||||
new sign_path(T)
|
||||
var/obj/structure/sign/S = new sign_path(T)
|
||||
S.setDir(dir)
|
||||
qdel(src)
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/item/sign_backing/Move(atom/new_loc, direct = 0)
|
||||
// pulling, throwing, or conveying a sign backing does not rotate it
|
||||
var/old_dir = dir
|
||||
. = ..()
|
||||
setDir(old_dir)
|
||||
|
||||
/obj/item/sign_backing/attack_self(mob/user)
|
||||
. = ..()
|
||||
setDir(turn(dir, 90))
|
||||
|
||||
/obj/structure/sign/nanotrasen
|
||||
name = "\improper Nanotrasen Logo"
|
||||
desc = "A sign with the Nanotrasen Logo on it. Glory to Nanotrasen!"
|
||||
|
||||
Reference in New Issue
Block a user