mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-14 09:27:45 +01:00
Categorized latejoin menu and made it into VueUI, improved crew manifest logic and made Verb manifest same as VueUI program, Job fixes (#10470)
This commit is contained in:
@@ -1034,16 +1034,19 @@ var/list/admin_verbs_cciaa = list(
|
||||
if(holder)
|
||||
var/list/jobs = list()
|
||||
for (var/datum/job/J in SSjobs.occupations)
|
||||
if (J.current_positions >= J.total_positions && J.total_positions != -1)
|
||||
if (J.current_positions >= J.get_total_positions() && J.get_total_positions() != -1)
|
||||
jobs += J.title
|
||||
if (!jobs.len)
|
||||
to_chat(usr, "There are no fully staffed jobs.")
|
||||
to_chat(usr, SPAN_NOTICE("There are no fully staffed jobs."))
|
||||
return
|
||||
var/job = input("Please select job slot to free", "Free job slot") as null|anything in jobs
|
||||
var/job = input("Please select job slot to free", "Free job slot") as null|anything in jobs
|
||||
if (job)
|
||||
SSjobs.FreeRole(job)
|
||||
message_admins("A job slot for [job] has been opened by [key_name_admin(usr)]")
|
||||
return
|
||||
var/datum/job/J = SSjobs.GetJob(job)
|
||||
if(istype(J))
|
||||
J.total_positions++
|
||||
message_admins("A job slot for [job] has been added by [key_name_admin(usr)]. The total is now [J.get_total_positions()] with [J.current_positions] positions occupied.")
|
||||
else
|
||||
to_chat(usr, SPAN_DANGER("Failed to increase total positions in job [job]."))
|
||||
|
||||
/client/proc/toggleattacklogs()
|
||||
set name = "Toggle Attack Log Messages"
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
open_crew_manifest(user)
|
||||
SSrecords.open_manifest_vueui(user)
|
||||
|
||||
@@ -680,7 +680,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
||||
return
|
||||
|
||||
for(var/datum/job/job in SSjobs.occupations)
|
||||
to_chat(src, "[job.title]: [job.total_positions]")
|
||||
to_chat(src, "[job.title]: [job.get_total_positions() == -1 ? "unlimited" : job.get_total_positions()]")
|
||||
feedback_add_details("admin_verb","LFS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/cmd_admin_explosion(atom/O as obj|mob|turf in range(world.view))
|
||||
|
||||
Reference in New Issue
Block a user