Allows bayonet removal (#5658)

You can now remove bayonets by using a crowbar on the gun.

Suggested by ths thread: https://forums.aurorastation.org/topic/10603-detatch-bayonets/
This commit is contained in:
Alberyk
2018-11-30 10:02:31 +01:00
committed by Werner
parent 14df02563d
commit df8e7afa9e
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -713,6 +713,12 @@ obj/item/weapon/gun/Destroy()
to_chat(user, "<span class='notice'>You attach \the [I] to the front of \the [src].</span>")
update_icon()
if(iscrowbar(I) && bayonet)
to_chat(user, "<span class='notice'>You detach \the [bayonet] from \the [src].</span>")
bayonet.forceMove(get_turf(src))
bayonet = null
update_icon()
if(!pin)
return ..()