From d375284f4258a6a30b9481ebcc6a25e78df32239 Mon Sep 17 00:00:00 2001 From: Carlen White Date: Wed, 22 May 2019 09:25:25 -0400 Subject: [PATCH] Concating a string instead of a list As per request. --- .../mob/living/carbon/human/human_defense.dm | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index d87cf0783d..fabb6aba93 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -649,7 +649,7 @@ if(health >= 0) if(src == M) - var/to_send = list() + var/to_send = "" visible_message("[src] examines [p_them()]self.", \ "You check yourself for injuries.") @@ -696,55 +696,55 @@ var/no_damage if(status == "OK" || status == "no damage") no_damage = TRUE - to_send += "\t Your [LB.name] [has_trait(TRAIT_SELF_AWARE) ? "has" : "is"] [status]." + to_send += "\t Your [LB.name] [has_trait(TRAIT_SELF_AWARE) ? "has" : "is"] [status].\n" for(var/obj/item/I in LB.embedded_objects) - to_send += "\t There is \a [I] embedded in your [LB.name]!" + to_send += "\t There is \a [I] embedded in your [LB.name]!\n" for(var/t in missing) - to_send += "Your [parse_zone(t)] is missing!" + to_send += "Your [parse_zone(t)] is missing!\n" if(bleed_rate) - to_send += "You are bleeding!" + to_send += "You are bleeding!\n" if(getStaminaLoss()) if(getStaminaLoss() > 30) - to_send += "You're completely exhausted." + to_send += "You're completely exhausted.\n" else - to_send += "You feel fatigued." + to_send += "You feel fatigued.\n" if(has_trait(TRAIT_SELF_AWARE)) if(toxloss) if(toxloss > 10) - to_send += "You feel sick." + to_send += "You feel sick.\n" else if(toxloss > 20) - to_send += "You feel nauseated." + to_send += "You feel nauseated.\n" else if(toxloss > 40) - to_send += "You feel very unwell!" + to_send += "You feel very unwell!\n" if(oxyloss) if(oxyloss > 10) - to_send += "You feel lightheaded." + to_send += "You feel lightheaded.\n" else if(oxyloss > 20) - to_send += "Your thinking is clouded and distant." + to_send += "Your thinking is clouded and distant.\n" else if(oxyloss > 30) - to_send += "You're choking!" + to_send += "You're choking!\n" switch(nutrition) if(NUTRITION_LEVEL_FULL to INFINITY) - to_send += "You're completely stuffed!" + to_send += "You're completely stuffed!\n" if(NUTRITION_LEVEL_WELL_FED to NUTRITION_LEVEL_FULL) - to_send += "You're well fed!" + to_send += "You're well fed!\n" if(NUTRITION_LEVEL_FED to NUTRITION_LEVEL_WELL_FED) - to_send += "You're not hungry." + to_send += "You're not hungry.\n" if(NUTRITION_LEVEL_HUNGRY to NUTRITION_LEVEL_FED) - to_send += "You could use a bite to eat." + to_send += "You could use a bite to eat.\n" if(NUTRITION_LEVEL_STARVING to NUTRITION_LEVEL_HUNGRY) - to_send += "You feel quite hungry." + to_send += "You feel quite hungry.\n" if(0 to NUTRITION_LEVEL_STARVING) - to_send += "You're starving!" + to_send += "You're starving!\n" if(roundstart_quirks.len) - to_send += "You have these quirks: [get_trait_string()]." + to_send += "You have these quirks: [get_trait_string()].\n" - to_chat(src, jointext(to_send, "\n")) + to_chat(src, to_send) else if(wear_suit) wear_suit.add_fingerprint(M)