diff --git a/src/npc/descriptions/descriptionWidgets.js b/src/npc/descriptions/descriptionWidgets.js index 32183d76cb4241848e5a92a97ad51151eb3af931..ffbb28ca840a7a2f5829095faf396c6391c3367f 100644 --- a/src/npc/descriptions/descriptionWidgets.js +++ b/src/npc/descriptions/descriptionWidgets.js @@ -413,6 +413,7 @@ App.Desc.ageAndHealth = function(slave) { flag = false; } else if (H.shortDamage >= 20) { array.push(`is <span class="orange">injured`); + flag = true; } else if (H.shortDamage > 5) { array.push(`seems to have suffered a <span class="yellow">minor injury</span> recently`); flag = false; @@ -420,22 +421,30 @@ App.Desc.ageAndHealth = function(slave) { if (H.longDamage >= 70) { array.push(`is suffering heavily under accumulated <span class="red">permanent health problems`); + flag = true; } else if (H.longDamage >= 40) { array.push(`has some clear <span class="red">permanent health issues`); + flag = true; } else if (H.longDamage >= 20) { array.push(`shows signs of <span class="orange">lasting health problems`); + flag = true; } else if (H.longDamage > 5) { array.push(`carries some <span class="yellow">minor niggles`); + flag = true; } if (H.condition < -80 && H.shortDamage !== 0 && H.longDamage !== 0) { array.push(`has been treated so badly ${he} <span class="red">is close to the brink`); + flag = true; } else if (H.condition < -50) { array.push(`appears to be in <span class="red">terrible condition`); + flag = true; } else if (H.condition < -20) { array.push(`appears to be in <span class="orange">poor condition`); + flag = true; } else if (H.condition < 0) { array.push(`could be in <span class="yellow">better condition`); + flag = true; } array.push(array.pop() + `${flag ? `.</span>` : `.`}`);