Science analyser goggles

This commit is contained in:
Robertha89
2015-10-09 08:22:45 +02:00
parent 8114cb7524
commit 836ddb15d4
8 changed files with 120 additions and 18 deletions
+25 -1
View File
@@ -136,7 +136,31 @@
if(5.0)
size = "huge"
return ..(user, distance, "", "It is a [size] item.")
..(user, distance, "", "It is a [size] item.")
if(user.research_scanner) //Mob has a research scanner active.
var/msg = "*--------* <BR>"
if(origin_tech)
msg += "<span class='notice'>Testing potentials:</span><BR>"
var/list/techlvls = params2list(origin_tech)
for(var/T in techlvls) //This needs to use the better names.
msg += "Tech: [capitalize(T)] | magnitude: [techlvls[T]] <BR>"
msg += "Research reliability: [reliability]% <BR>"
if(crit_fail)
msg += "<span class='danger'>Critical failure detected in subject!</span><BR>"
else
msg += "<span class='danger'>No tech origins detected.</span><BR>"
if(materials.len)
msg += "<span class='notice'>Extractable materials:<BR>"
for(var/mat in materials)
msg += "[capitalize(copytext(mat, 2))]<BR>" //Capitize first word, remove the "$"
else
msg += "<span class='danger'>No extractable materials detected.</span><BR>"
msg += "*--------*"
user << msg
/obj/item/attack_hand(mob/user as mob)