Dispenser Anchor Fix (#12123)

This commit is contained in:
Doxxmedearly
2021-06-30 19:42:21 -03:00
committed by GitHub
parent dbcfb42b62
commit a2d02441f7
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -108,8 +108,8 @@
qdel(I)
return
else if(I.iswrench())
playsound(src.loc, I.usesound, 50, 1)
if(!anchored)
playsound(get_turf(user), I.usesound, 50, 1)
if(anchored)
to_chat(user, SPAN_NOTICE("You begin to unfasten \the [src] from the floor..."))
if(do_after(user, 40 / I.toolspeed))
user.visible_message("<b>[user]</b> unfastens \the [src].", SPAN_NOTICE("You have unfastened \the [src]. Now it can be pulled somewhere else."), SPAN_NOTICE("You hear ratcheting noise."))
@@ -0,0 +1,7 @@
author: Doxxmedearly
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
changes:
- bugfix: "Pipe dispensers can be unanchored and anchored properly again."