From c1d1cc5cb187aa4de3356145891dca33d4768411 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Tue, 5 Sep 2017 21:56:59 -0400 Subject: [PATCH] gramatically correct spaghetti code --- code/citadel/cit_crewobjectives.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/citadel/cit_crewobjectives.dm b/code/citadel/cit_crewobjectives.dm index 322b88a7eb..4075e669ad 100644 --- a/code/citadel/cit_crewobjectives.dm +++ b/code/citadel/cit_crewobjectives.dm @@ -401,13 +401,15 @@ /datum/objective/crew/janitor/clean/update_explanation_text() . = ..() - explanation_text = "Ensure that " + explanation_text = "Ensure that the " for(var/i in 1 to areas.len) var/area/A = areas[i] explanation_text += "[A.name]" - if(i != areas.len) - explanation_text += ", and " - explanation_text += " remain[(areas.len ==1) ? "s" : ""] spotless at the end of the shift." + if(i != areas.len && areas.len >= 3) + explanation_text += ", " + if(i == areas.len - 1) + explanation_text += "and " + explanation_text += " [(areas.len ==1) ? "is completely" : "are [(areas.len == 2) ? "completely" : "all"]"] spotless at the end of the shift." /datum/objective/crew/janitor/clean/check_completion()