Dynamic Headset Description

Headsets now generate a description of available radio channels based on the installed encryption key(s).
Currently only updates on creation, not when changing encryption keys, to ensure that less than legal keys are not detected by a mere casual glance.
This commit is contained in:
PsiOmega
2014-11-18 18:43:12 +01:00
parent 31e6c4a207
commit 45c5f01363
4 changed files with 49 additions and 29 deletions
+3 -5
View File
@@ -102,7 +102,7 @@
src.loc = T
/obj/item/examine(mob/user)
/obj/item/examine(mob/user, var/distance = -1)
var/size
switch(src.w_class)
if(1.0)
@@ -117,10 +117,8 @@
size = "huge"
else
//if ((CLUMSY in usr.mutations) && prob(50)) t = "funny-looking"
user << "This is a [src.blood_DNA ? "bloody " : ""]\icon[src][src.name]. It is a [size] item."
if(src.desc)
user << src.desc
return
var/custom_sufix = "It is a [size] item."
return ..(user, distance, custom_sufix)
/obj/item/attack_hand(mob/user as mob)
if (!user) return