Shows proper tech name

This commit is contained in:
Robertha89
2015-10-10 01:38:59 +02:00
parent 8d1a89f2d1
commit acb9ae2c4b
+24 -1
View File
@@ -144,8 +144,31 @@
if(origin_tech)
msg += "<span class='notice'>Testing potentials:</span><BR>"
var/list/techlvls = params2list(origin_tech)
var/tech = null
for(var/T in techlvls) //This needs to use the better names.
msg += "Tech: [capitalize(T)] | magnitude: [techlvls[T]] <BR>"
tech = T
switch(tech)
if("materials")
tech = "Materials Research"
if("engineering")
tech = "Engineering Research"
if("plasmatech")
tech = "Plasma Research"
if("powerstorage")
tech = "Power Manipulation Technology"
if("bluespace")
tech = "'Blue-space' Research"
if("biotech")
tech = "Biological Technology"
if("combat")
tech = "Combat Systems Research"
if("magnets")
tech = "Electromagnetic Spectrum Research"
if("programming")
tech = "Data Theory Research"
if("syndicate")
tech = "Illegal Technologies Research"
msg += "Tech: [tech] | Magnitude: [techlvls[T]] <BR>"
msg += "Research reliability: [reliability]% <BR>"
if(crit_fail)
msg += "<span class='danger'>Critical failure detected in subject!</span><BR>"