removes sleep from light flickers (#17211)

* removes sleep from light flickers

* .

* .

* move the counter

* oups

* .

* .
This commit is contained in:
Kashargul
2025-02-26 19:23:26 +01:00
committed by GitHub
parent b9d4ba89e3
commit c52141639b
5 changed files with 38 additions and 30 deletions
@@ -68,10 +68,10 @@
var/sawn_off = FALSE
/obj/item/gun/projectile/shotgun/pump/rifle/ceremonial/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) && w_class != ITEMSIZE_NORMAL)
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 and stock of \the [src]."))
if(loaded.len)
afterattack(user, user)