Merge pull request #13832 from dearmochi/fix-syringe-gun-clip-size

Fix bug that allows loading an additional syringe to syringe guns
This commit is contained in:
Fox McCloud
2020-07-14 09:26:24 -04:00
committed by GitHub
+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>")