Merge pull request #3639 from deathride58/IHAVENOIDEAWHATTHEFUCKIMDOING

[READY] Redtext bug fix + Endround objective check cleanup
This commit is contained in:
deathride58
2017-11-21 05:53:00 +00:00
committed by GitHub
4 changed files with 27 additions and 43 deletions
+4 -3
View File
@@ -113,12 +113,13 @@
var/objective_count = 1 var/objective_count = 1
for(var/datum/objective/objective in team.objectives) for(var/datum/objective/objective in team.objectives)
if(objective.check_completion()) if(objective.check_completion())
text += "<br><B>Objective #[objective_count]</B>: [objective.explanation_text] <font color='green'><B>Success!</B></font>" text += "<br><B>Objective #[objective_count]</B>: [objective.explanation_text] <font color='green'><B>Success!</B></font> [istype(objective, /datum/objective/crew) ? "<font color='grey'>(Optional)</font>" : ""]"
SSblackbox.add_details("traitor_objective","[objective.type]|SUCCESS") SSblackbox.add_details("traitor_objective","[objective.type]|SUCCESS")
else else
text += "<br><B>Objective #[objective_count]</B>: [objective.explanation_text] <font color='red'>Fail.</font>" text += "<br><B>Objective #[objective_count]</B>: [objective.explanation_text] <font color='red'>Fail.</font> [istype(objective, /datum/objective/crew) ? "<font color='grey'>(Optional)</font>" : ""]"
SSblackbox.add_details("traitor_objective","[objective.type]|FAIL") SSblackbox.add_details("traitor_objective","[objective.type]|FAIL")
win = FALSE if(!(istype(objective, /datum/objective/crew)))
win = FALSE
objective_count++ objective_count++
if(win) if(win)
text += "<br><font color='green'><B>The blood brothers were successful!</B></font>" text += "<br><font color='green'><B>The blood brothers were successful!</B></font>"
+6 -13
View File
@@ -113,20 +113,13 @@ GLOBAL_VAR(changeling_team_objective_type) //If this is not null, we hand our th
if(changeling.objectives.len) if(changeling.objectives.len)
var/count = 1 var/count = 1
for(var/datum/objective/objective in changeling.objectives) for(var/datum/objective/objective in changeling.objectives)
if(istype(objective, /datum/objective/crew)) if(objective.check_completion())
if(objective.check_completion()) text += "<br><b>Objective #[count]</b>: [objective.explanation_text] <font color='green'><b>Success!</b></font> [istype(objective, /datum/objective/crew) ? "<font color='grey'>(Optional)</font>" : ""]"
text += "<br><b>Objective #[count]</b>: [objective.explanation_text] <font color='green'><b>Success!</b></font> <font color='grey'>(Optional)</font>" SSblackbox.add_details("changeling_objective","[objective.type]|SUCCESS")
SSblackbox.add_details("changeling_objective","[objective.type]|SUCCESS")
else
text += "<br><b>Objective #[count]</b>: [objective.explanation_text] <span class='danger'>Fail.</span> <font color='grey'>(Optional)</font>"
SSblackbox.add_details("changeling_objective","[objective.type]|FAIL")
else else
if(objective.check_completion()) text += "<br><b>Objective #[count]</b>: [objective.explanation_text] <span class='danger'>Fail.</span> [istype(objective, /datum/objective/crew) ? "<font color='grey'>(Optional)</font>" : ""]"
text += "<br><b>Objective #[count]</b>: [objective.explanation_text] <font color='green'><b>Success!</b></font>" SSblackbox.add_details("changeling_objective","[objective.type]|FAIL")
SSblackbox.add_details("changeling_objective","[objective.type]|SUCCESS") if(!(istype(objective, /datum/objective/crew)))
else
text += "<br><b>Objective #[count]</b>: [objective.explanation_text] <span class='danger'>Fail.</span>"
SSblackbox.add_details("changeling_objective","[objective.type]|FAIL")
changelingwin = 0 changelingwin = 0
count++ count++
+6 -9
View File
@@ -113,17 +113,14 @@
if(traitor.objectives.len)//If the traitor had no objectives, don't need to process this. if(traitor.objectives.len)//If the traitor had no objectives, don't need to process this.
var/count = 1 var/count = 1
for(var/datum/objective/objective in traitor.objectives) for(var/datum/objective/objective in traitor.objectives)
if(istype(objective, /datum/objective/crew)) if(objective.check_completion())
if(objective.check_completion()) objectives += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='green'><B>Success!</B></font> [istype(objective, /datum/objective/crew) ? "<font color='grey'>(Optional)</font>" : ""]"
objectives += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='green'><B>Success!</B></font> <font color='grey'>(Optional)</font>" SSblackbox.add_details("traitor_objective","[objective.type]|SUCCESS")
SSblackbox.add_details("traitor_objective","[objective.type]|SUCCESS")
else
objectives += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='red'>Fail.</font> <font color='grey'>(Optional)</font>"
SSblackbox.add_details("traitor_objective","[objective.type]|FAIL")
else else
objectives += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='red'>Fail.</font>" objectives += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='red'>Fail.</font> [istype(objective, /datum/objective/crew) ? "<font color='grey'>(Optional)</font>" : ""]"
SSblackbox.add_details("traitor_objective","[objective.type]|FAIL") SSblackbox.add_details("traitor_objective","[objective.type]|FAIL")
traitorwin = FALSE if(!(istype(objective, /datum/objective/crew)))
traitorwin = FALSE
count++ count++
if(uplink_true) if(uplink_true)
+6 -13
View File
@@ -89,20 +89,13 @@
var/count = 1 var/count = 1
var/wizardwin = 1 var/wizardwin = 1
for(var/datum/objective/objective in wizard.objectives) for(var/datum/objective/objective in wizard.objectives)
if(istype(objective, /datum/objective/crew)) if(objective.check_completion())
if(objective.check_completion()) text += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='green'><B>Success!</B></font> [istype(objective, /datum/objective/crew) ? "<font color='grey'>(Optional)</font>" : ""]"
text += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='green'><B>Success!</B></font> <font color='grey'>(Optional)</font>" SSblackbox.add_details("wizard_objective","[objective.type]|SUCCESS")
SSblackbox.add_details("wizard_objective","[objective.type]|SUCCESS")
else
text += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='red'>Fail.</font> <font color='grey'>(Optional)</font>"
SSblackbox.add_details("wizard_objective","[objective.type]|FAIL")
else else
if(objective.check_completion()) text += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='red'>Fail.</font> [istype(objective, /datum/objective/crew) ? "<font color='grey'>(Optional)</font>" : ""]"
text += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='green'><B>Success!</B></font>" SSblackbox.add_details("wizard_objective","[objective.type]|FAIL")
SSblackbox.add_details("wizard_objective","[objective.type]|SUCCESS") if(!(istype(objective, /datum/objective/crew)))
else
text += "<br><B>Objective #[count]</B>: [objective.explanation_text] <font color='red'>Fail.</font>"
SSblackbox.add_details("wizard_objective","[objective.type]|FAIL")
wizardwin = 0 wizardwin = 0
count++ count++