mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 09:03:05 +00:00
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2418 316c924e-a436-60f5-8080-3fe189b3f50e
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
/obj/item/weapon/gun/projectile/detective
|
|
desc = "A cheap Martian knock-off of a Smith & Wesson Model 10. Uses .38-Special rounds."
|
|
name = "revolver"
|
|
icon_state = "detective"
|
|
caliber = "38"
|
|
origin_tech = "combat=2;materials=2"
|
|
ammo_type = "/obj/item/ammo_casing/c38"
|
|
|
|
|
|
special_check(var/mob/living/carbon/human/M)
|
|
if(ishuman(M))
|
|
if(istype(M.w_uniform, /obj/item/clothing/under/det) && istype(M.head, /obj/item/clothing/head/det_hat) && istype(M.wear_suit, /obj/item/clothing/suit/det_suit))
|
|
return 1
|
|
M << "\red You just don't feel cool enough to use this gun looking like that."
|
|
return 0
|
|
|
|
|
|
verb/rename_gun()
|
|
set name = "Name Gun"
|
|
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 << "\red You don't feel cool enough to name this gun, chump."
|
|
return 0
|
|
|
|
var/input = input("What do you want to name the gun?",,"")
|
|
input = sanitize(input)
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
/obj/item/weapon/gun/projectile/mateba
|
|
name = "mateba"
|
|
desc = "When you absolutely, positively need a 10mm hole in the other guy. Uses .357 ammo."
|
|
icon_state = "mateba"
|
|
origin_tech = "combat=2;materials=2" |