Skip to content

Commit

Permalink
Update clamp.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyThorne committed Nov 13, 2023
1 parent 85a2c0e commit 2995f83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/game/machinery/atmoalter/clamp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
open()
else
close()
to_chat(user, "<span class='notice'>You turn [open ? "off" : "on"] \the [src]</span>")
to_chat(user, SPAN("notice", "You turn [open ? "off" : "on"] \the [src]"))

/obj/machinery/clamp/Destroy()
if(!open)
Expand Down Expand Up @@ -122,22 +122,22 @@
return

if(open && over_object == usr && Adjacent(usr))
to_chat(usr, "<span class='notice'>You begin to remove \the [src]...</span>")
to_chat(usr, SPAN("notice", "You begin to remove \the [src]..."))
if (do_after(usr, 30, src))
to_chat(usr, "<span class='notice'>You have removed \the [src].</span>")
to_chat(usr, SPAN("notice", "You have removed \the [src]."))
var/obj/item/clamp/C = new /obj/item/clamp(src.loc)
C.forceMove(usr.loc)
if(ishuman(usr))
usr.pick_or_drop(C)
qdel(src)
return
else
to_chat(usr, "<span class='warning'>You can't remove \the [src] while it's active!</span>")
to_chat(usr, SPAN("warning", "You can't remove \the [src] while it's active!"))

/obj/machinery/clamp/proc/detach()
if(target?.clamp == src)
target.clamp = null
new/obj/item/clamp(loc)
new /obj/item/clamp(loc)
qdel(src)

/obj/item/clamp
Expand Down

0 comments on commit 2995f83

Please sign in to comment.