mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
Updates Manage Job Slots to work with assistant slots
Any (non-silicon) job can now be set to be an unlimited slot job from Manage Job Slots People will be allowed to join as assistant if no other jobs are availible Removes a redundant sanity check from AssignRole()
This commit is contained in:
@@ -1404,6 +1404,31 @@
|
||||
|
||||
src.manage_free_slots()
|
||||
|
||||
else if(href_list["unlimitjobslot"])
|
||||
if(!check_rights(R_ADMIN)) return
|
||||
|
||||
var/Unlimit = href_list["unlimitjobslot"]
|
||||
|
||||
for(var/datum/job/job in SSjob.occupations)
|
||||
if(job.title == Unlimit)
|
||||
job.total_positions = -1
|
||||
break
|
||||
|
||||
src.manage_free_slots()
|
||||
|
||||
else if(href_list["limitjobslot"])
|
||||
if(!check_rights(R_ADMIN)) return
|
||||
|
||||
var/Limit = href_list["limitjobslot"]
|
||||
|
||||
for(var/datum/job/job in SSjob.occupations)
|
||||
if(job.title == Limit)
|
||||
job.total_positions = job.current_positions
|
||||
break
|
||||
|
||||
src.manage_free_slots()
|
||||
|
||||
|
||||
else if(href_list["adminspawncookie"])
|
||||
if(!check_rights(R_ADMIN|R_FUN)) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user