fixed missing new line and adds text when you're fully repaired

This commit is contained in:
Cactus
2019-08-25 03:06:06 -04:00
parent 7ec5f2f6a7
commit 2bab8c2896
+16 -13
View File
@@ -5,20 +5,23 @@
if(icon)
msg += "\icon[icon] "
msg += "<EM>[src.name]</EM>, a <EM>[chassis_names[src.chassis]]</EM> personal AI"
msg += "<EM>[src.name]</EM>, a <EM>[chassis_names[src.chassis]]</EM> personal AI\n"
msg += "<span class='warning'>"
if (src.getBruteLoss())
if (src.getBruteLoss() < 50)
msg += "It looks slightly dented.\n"
else
msg += "<B>It looks severely dented!</B>\n"
if (src.getFireLoss())
if (src.getFireLoss() < 50)
msg += "It looks slightly charred.\n"
else
msg += "<B>It looks severely burnt and heat-warped!</B>\n"
msg += "</span>"
if(health == 100)
msg += "<span class='notice'>It's in pristine condition.</span>\n"
else
msg += "<span class='warning'>"
if (src.getBruteLoss())
if (src.getBruteLoss() < 50)
msg += "It looks slightly dented.\n"
else
msg += "<B>It looks severely dented!</B>\n"
if (src.getFireLoss())
if (src.getFireLoss() < 50)
msg += "It looks slightly charred.\n"
else
msg += "<B>It looks severely burnt and heat-warped!</B>\n"
msg += "</span>"
switch(src.stat)
if(CONSCIOUS)