From 8646dd0fd152e301d890e08574d77d54a46c30be Mon Sep 17 00:00:00 2001 From: Anu <barrychahal@gmail.com> Date: Mon, 23 Nov 2020 00:31:09 -0800 Subject: [PATCH] Keep all spans in-line --- src/npc/descriptions/descriptionWidgets.js | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/npc/descriptions/descriptionWidgets.js b/src/npc/descriptions/descriptionWidgets.js index 8b50b318d72..39b900c1cd8 100644 --- a/src/npc/descriptions/descriptionWidgets.js +++ b/src/npc/descriptions/descriptionWidgets.js @@ -419,37 +419,37 @@ App.Desc.ageAndHealth = function(slave) { } else if (H.shortDamage >= 40) { array.push(`is <span class="red">seriously injured</span> with some lasting effects`); } else if (H.shortDamage >= 20) { - array.push(`is <span class="orange">injured`); + array.push(`is <span class="orange">injured</span>`); } else if (H.shortDamage > 5) { array.push(`seems to have suffered a <span class="yellow">minor injury</span> recently`); } if (H.longDamage >= 70) { - array.push(`is suffering heavily under accumulated <span class="red">permanent health problems`); + array.push(`is suffering heavily under accumulated <span class="red">permanent health problems</span>`); } else if (H.longDamage >= 40) { - array.push(`has some clear <span class="red">permanent health issues`); + array.push(`has some clear <span class="red">permanent health issues</span>`); } else if (H.longDamage >= 20) { - array.push(`shows signs of <span class="orange">lasting health problems`); + array.push(`shows signs of <span class="orange">lasting health problems</span>`); } else if (H.longDamage > 5) { - array.push(`carries some <span class="yellow">minor niggles`); + array.push(`carries some <span class="yellow">minor niggles</span>`); } 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`); + array.push(`has been treated so badly ${he} <span class="red">is close to the brink</span>`); } else if (H.condition < -50) { - array.push(`appears to be in <span class="red">terrible condition`); + array.push(`appears to be in <span class="red">terrible condition</span>`); } else if (H.condition < -20) { - array.push(`appears to be in <span class="orange">poor condition`); + array.push(`appears to be in <span class="orange">poor condition</span>`); } else if (H.condition < 0) { - array.push(`could be in <span class="yellow">better condition`); + array.push(`could be in <span class="yellow">better condition</span>`); } if (array.length === 3) { - r += (` ${array[0]}, ${array[1]} and ${array[2]}.</span>`); + r += (` ${array[0]}, ${array[1]} and ${array[2]}.`); } else if (array.length === 2) { - r += (` ${array[0]} and ${array[1]}.</span>`); + r += (` ${array[0]} and ${array[1]}.`); } else if (array.length === 1) { - r += (` ${array[0]}.</span>`); + r += (` ${array[0]}.`); } } -- GitLab