mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
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:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user