Bulldog for Traitors (#28592)

* Bulldog for Traitors

* Adds chat message when you try to load ammo that doesn't fit in the magazine.
This commit is contained in:
PollardTheDragon
2025-03-25 11:11:49 +00:00
committed by GitHub
parent 98b70438ea
commit c6c4e82ff4
4 changed files with 32 additions and 0 deletions
+2
View File
@@ -212,6 +212,8 @@
user.drop_item()
AC.loc = src
num_loaded++
else
to_chat(user, "<span class='notice'>You are unable to fit [AC] into \the [src].</span>")
if(num_loaded)
if(!silent)
to_chat(user, "<span class='notice'>You load [num_loaded] shell\s into \the [src]!</span>")
@@ -466,6 +466,16 @@
icon_state = "m12gb"
ammo_type = /obj/item/ammo_casing/shotgun/buckshot
/obj/item/ammo_box/magazine/m12g/rubbershot
name = "shotgun magazine (12g rubbershot)"
icon_state = "m12gb"
ammo_type = /obj/item/ammo_casing/shotgun/rubbershot
/obj/item/ammo_box/magazine/m12g/rubbershot/give_round(obj/item/ammo_casing/R, replace_spent)
if(istype(R, /obj/item/ammo_casing/shotgun/frag12) || istype(R, /obj/item/ammo_casing/shotgun/buckshot))
return 0
return ..()
/obj/item/ammo_box/magazine/m12g/stun
name = "shotgun magazine (12g taser slugs)"
icon_state = "m12gs"
@@ -350,6 +350,10 @@
..()
empty_alarm()
// Standard traitor uplink variant
/obj/item/gun/projectile/automatic/shotgun/bulldog/traitor
mag_type = /obj/item/ammo_box/magazine/m12g/rubbershot
//////////////////////////////
// MARK: IK-M2 LASER CARBINE
//////////////////////////////