mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user