Merge pull request #9716 from Ghommie/Ghommie-cit317

Porting objective code refactor (ergo fixing abductors/abductees objective by updating the code)
This commit is contained in:
kevinz000
2019-11-10 11:27:04 -07:00
committed by GitHub
46 changed files with 399 additions and 326 deletions
+4 -2
View File
@@ -534,10 +534,12 @@
return parts.Join()
/proc/printobjectives(datum/mind/ply)
/proc/printobjectives(list/objectives)
if(!objectives || !objectives.len)
return
var/list/objective_parts = list()
var/count = 1
for(var/datum/objective/objective in ply.objectives)
for(var/datum/objective/objective in objectives)
if(objective.check_completion())
objective_parts += "<b>Objective #[count]</b>: [objective.explanation_text] <span class='greentext'>Success!</span>"
else