fix sawn off shotguns (#16823)

This commit is contained in:
Kashargul
2025-01-03 08:16:24 +01:00
committed by GitHub
parent 3094e65b71
commit f7fa0eee62
@@ -173,10 +173,10 @@
//this is largely hacky and bad :( -Pete //less hacky and bad now :) -Ghost
/obj/item/gun/projectile/shotgun/doublebarrel/attackby(var/obj/item/A as obj, mob/user as mob)
if(sawn_off)
to_chat(user, span_warning("The [src] is already shortened!"))
return
if(istype(A, /obj/item/surgical/circular_saw) || istype(A, /obj/item/melee/energy) || istype(A, /obj/item/pickaxe/plasmacutter))
if(sawn_off)
to_chat(user, span_warning("The [src] is already shortened!"))
return
to_chat(user, span_notice("You begin to shorten the barrel of \the [src]."))
if(loaded.len)
var/burstsetting = burst