change job slot logging to use job_debug (#61688)

admin topics for updating available jobs weren't logged at all and that was kinda dumb
john willard logged the console to game which i disagree with so i want to move that also
This commit is contained in:
windarkata
2021-09-26 21:28:37 +01:00
committed by GitHub
parent 509c0f6419
commit 2d01f4713e
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -958,6 +958,7 @@
for(var/datum/job/job as anything in SSjob.joinable_occupations)
if(job.title == Add)
job.total_positions += 1
log_job_debug("[key_name(usr)] added a slot to [job.title]")
break
src.manage_free_slots()
@@ -976,6 +977,7 @@
if(!newtime)
to_chat(src.owner, "Setting to amount of positions filled for the job", confidential = TRUE)
job.total_positions = job.current_positions
log_job_debug("[key_name(usr)] set the job cap for [job.title] to [job.total_positions]")
break
job.total_positions = newtime
@@ -990,6 +992,7 @@
for(var/datum/job/job as anything in SSjob.joinable_occupations)
if(job.title == Remove && job.total_positions - job.current_positions > 0)
job.total_positions -= 1
log_job_debug("[key_name(usr)] removed a slot from [job.title]")
break
src.manage_free_slots()
@@ -1003,6 +1006,7 @@
for(var/datum/job/job as anything in SSjob.joinable_occupations)
if(job.title == Unlimit)
job.total_positions = -1
log_job_debug("[key_name(usr)] removed the limit from [job.title]")
break
src.manage_free_slots()
@@ -1016,6 +1020,7 @@
for(var/datum/job/job as anything in SSjob.joinable_occupations)
if(job.title == Limit)
job.total_positions = job.current_positions
log_job_debug("[key_name(usr)] set the limit for [job.title] to [job.total_positions]")
break
src.manage_free_slots()