Fix syringe gun allowing one syringe more than normal

This commit is contained in:
mochi
2020-07-14 09:13:42 +02:00
parent cc4343d282
commit 273a3e7b23
+2 -1
View File
@@ -65,7 +65,8 @@
/obj/item/gun/syringe/attackby(obj/item/A, mob/user, params, show_msg = TRUE)
if(istype(A, /obj/item/reagent_containers/syringe))
if(length(syringes) < max_syringes)
var/in_clip = length(syringes) + (chambered.BB ? 1 : 0)
if(in_clip < max_syringes)
if(!user.unEquip(A))
return
to_chat(user, "<span class='notice'>You load [A] into \the [src]!</span>")