diff --git a/code/modules/projectiles/ammunition.dm b/code/modules/projectiles/ammunition.dm index eddf50c510d..1fd1cd8b87f 100644 --- a/code/modules/projectiles/ammunition.dm +++ b/code/modules/projectiles/ammunition.dm @@ -30,6 +30,26 @@ +/obj/item/ammo_casing/attackby(obj/item/weapon/W as obj, mob/user as mob) + if(istype(W, /obj/item/weapon/screwdriver)) + if(BB) + if(initial(BB.name) == "bullet") + var/tmp_label = "" + var/label_text = sanitize(input(user, "Inscribe some text into \the [initial(BB.name)]","Inscription",tmp_label)) + if(length(label_text) > 20) + user << "\red The inscription can be at most 20 characters long." + else + if(label_text == "") + user << "\blue You scratch the inscription off of [initial(BB)]." + BB.name = initial(BB.name) + else + user << "\blue You inscribe \"[label_text]\" into \the [initial(BB.name)]." + BB.name = "[initial(BB.name)] \"[label_text]\"" + else + user << "\blue You can only inscribe a metal bullet." //because inscribing beanbags is silly + else + user << "\blue There is no bullet in the casing to inscribe anything into." + //Boxes of ammo /obj/item/ammo_box @@ -107,4 +127,4 @@ //Behavior for magazines /obj/item/ammo_box/magazine/proc/ammo_count() - return stored_ammo.len \ No newline at end of file + return stored_ammo.len