mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 21:40:55 +01:00
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:
@@ -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 ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user