Skip to content

Commit

Permalink
fix objectives logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Legendaxe committed May 18, 2024
1 parent 34e9f63 commit fcab092
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modular_ss220/logs/code/logging.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
log_game("Игрок [player.mind.key] вошел в раунд с профессией [rank] ([job.current_positions]/[job.total_positions])")

/datum/mind/proc/log_antag_objectives()
if(length(objective_holder.objectives))
var/list/objectives = get_all_objectives()
if(length(objectives))
log_game("GAME: Start objective log for [html_decode(key)]/[html_decode(name)]")
var/count = 1
for(var/datum/objective/objective in objective_holder.objectives)
for(var/datum/objective/objective in objectives)
log_game("GAME: Objective #[count]: [objective.explanation_text]")
count++
log_game("GAME: End objective log for [html_decode(key)]/[html_decode(name)]")
Expand Down

0 comments on commit fcab092

Please sign in to comment.