diff --git a/code/modules/projectiles/guns/projectile/revolver.dm b/code/modules/projectiles/guns/projectile/revolver.dm index 0f6fca68b2b..d3f3a29d4d1 100644 --- a/code/modules/projectiles/guns/projectile/revolver.dm +++ b/code/modules/projectiles/guns/projectile/revolver.dm @@ -25,18 +25,32 @@ set desc = "Click to rename your gun. If you're the detective." var/mob/M = usr - if(!M.mind) return 0 - if(!M.mind.assigned_role == "Detective") - M << "You don't feel cool enough to name this gun, chump." - return 0 - - var/input = stripped_input(usr,"What do you want to name the gun?", ,"", MAX_NAME_LEN) + var/input = stripped_input(M,"What do you want to name the gun?", ,"", MAX_NAME_LEN) if(src && input && !M.stat && in_range(M,src)) name = input M << "You name the gun [input]. Say hello to your new friend." return 1 + verb/reskin_gun() + set name = "Reskin gun" + set category = "Object" + set desc = "Click to reskin your gun. If you're the detective." + + var/mob/M = usr + var/list/options = list() + options["The Original"] = "detective" + options["Leopard Spots"] = "detective_leopard" + options["Black Panther"] = "detective_panther" + options["Gold Trim"] = "detective_gold" + options["The Peacemaker"] = "detective_peacemaker" + var/choice = input(M,"What do you want to skin the gun to?","Reskin Gun") in options + + if(src && choice && !M.stat && in_range(M,src)) + icon_state = options[choice] + M << "Your gun is now skinned as [choice]. Say hello to your new friend." + return 1 + attackby(var/obj/item/A as obj, mob/user as mob) ..() if(istype(A, /obj/item/weapon/screwdriver)) diff --git a/icons/obj/gun.dmi b/icons/obj/gun.dmi index 2ad4316d4a0..45c0c47bed9 100644 Binary files a/icons/obj/gun.dmi and b/icons/obj/gun.dmi differ