Config shit for cards (#1310)
This commit is contained in:
@@ -208,6 +208,8 @@
|
|||||||
var/generate_minimaps = 0
|
var/generate_minimaps = 0
|
||||||
var/grey_assistants = 0
|
var/grey_assistants = 0
|
||||||
|
|
||||||
|
var/id_console_jobslot_delay = 30
|
||||||
|
|
||||||
var/lavaland_budget = 60
|
var/lavaland_budget = 60
|
||||||
var/space_budget = 16
|
var/space_budget = 16
|
||||||
|
|
||||||
@@ -409,6 +411,8 @@
|
|||||||
usewhitelist = TRUE
|
usewhitelist = TRUE
|
||||||
if("allow_metadata")
|
if("allow_metadata")
|
||||||
allow_Metadata = 1
|
allow_Metadata = 1
|
||||||
|
if("id_console_jobslot_delay")
|
||||||
|
id_console_jobslot_delay = text2num(value)
|
||||||
if("inactivity_period")
|
if("inactivity_period")
|
||||||
inactivity_period = text2num(value) * 10 //documented as seconds in config.txt
|
inactivity_period = text2num(value) * 10 //documented as seconds in config.txt
|
||||||
if("afk_period")
|
if("afk_period")
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ GLOBAL_VAR_INIT(time_last_changed_position, 0)
|
|||||||
//Cooldown for closing positions in seconds
|
//Cooldown for closing positions in seconds
|
||||||
//if set to -1: No cooldown... probably a bad idea
|
//if set to -1: No cooldown... probably a bad idea
|
||||||
//if set to 0: Not able to close "original" positions. You can only close positions that you have opened before
|
//if set to 0: Not able to close "original" positions. You can only close positions that you have opened before
|
||||||
var/change_position_cooldown = 60
|
var/change_position_cooldown = 30
|
||||||
//Jobs you cannot open new positions for
|
//Jobs you cannot open new positions for
|
||||||
var/list/blacklisted = list(
|
var/list/blacklisted = list(
|
||||||
"AI",
|
"AI",
|
||||||
@@ -46,6 +46,11 @@ GLOBAL_VAR_INIT(time_last_changed_position, 0)
|
|||||||
|
|
||||||
light_color = LIGHT_COLOR_BLUE
|
light_color = LIGHT_COLOR_BLUE
|
||||||
|
|
||||||
|
/obj/machinery/computer/card/Initialize()
|
||||||
|
. = ..()
|
||||||
|
change_position_cooldown = config.id_console_jobslot_delay
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/card/attackby(obj/O, mob/user, params)//TODO:SANITY
|
/obj/machinery/computer/card/attackby(obj/O, mob/user, params)//TODO:SANITY
|
||||||
if(istype(O, /obj/item/weapon/card/id))
|
if(istype(O, /obj/item/weapon/card/id))
|
||||||
var/obj/item/weapon/card/id/idcard = O
|
var/obj/item/weapon/card/id/idcard = O
|
||||||
@@ -532,7 +537,7 @@ GLOBAL_VAR_INIT(time_last_changed_position, 0)
|
|||||||
else
|
else
|
||||||
SSjob.prioritized_jobs += j
|
SSjob.prioritized_jobs += j
|
||||||
prioritycount++
|
prioritycount++
|
||||||
to_chat(usr, "<span class='notice'>[j.title] has been successfully [priority ? "prioritized" : "unprioritized"]. Potential employees will notice your request.</span>")
|
to_chat(usr, "<span class='notice'>[j.title] has been successfully [priority ? "prioritized" : "unprioritized"]. Potential employees will notice your request.</span>")
|
||||||
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
|
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
|
||||||
|
|
||||||
if ("print")
|
if ("print")
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
var/list/region_access = null
|
var/list/region_access = null
|
||||||
var/list/head_subordinates = null
|
var/list/head_subordinates = null
|
||||||
var/target_dept = 0 //Which department this computer has access to. 0=all departments
|
var/target_dept = 0 //Which department this computer has access to. 0=all departments
|
||||||
var/change_position_cooldown = 60
|
var/change_position_cooldown = 30
|
||||||
//Jobs you cannot open new positions for
|
//Jobs you cannot open new positions for
|
||||||
var/list/blacklisted = list(
|
var/list/blacklisted = list(
|
||||||
"AI",
|
"AI",
|
||||||
@@ -39,6 +39,10 @@
|
|||||||
//Assoc array: "JobName" = (int)<Opened Positions>
|
//Assoc array: "JobName" = (int)<Opened Positions>
|
||||||
var/list/opened_positions = list();
|
var/list/opened_positions = list();
|
||||||
|
|
||||||
|
/datum/computer_file/program/card_mod/New()
|
||||||
|
..()
|
||||||
|
change_position_cooldown = config.id_console_jobslot_delay
|
||||||
|
|
||||||
|
|
||||||
/datum/computer_file/program/card_mod/event_idremoved(background, slot)
|
/datum/computer_file/program/card_mod/event_idremoved(background, slot)
|
||||||
if(!slot || slot == 2)// slot being false means both are removed
|
if(!slot || slot == 2)// slot being false means both are removed
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ LOG_LAW
|
|||||||
## Comment this out to stop admins being able to choose their personal ooccolor
|
## Comment this out to stop admins being able to choose their personal ooccolor
|
||||||
ALLOW_ADMIN_OOCCOLOR
|
ALLOW_ADMIN_OOCCOLOR
|
||||||
|
|
||||||
|
## Job slot open/close by identification consoles delay in seconds
|
||||||
|
ID_CONSOLE_JOBSLOT_DELAY 30
|
||||||
|
|
||||||
## If metadata is supported
|
## If metadata is supported
|
||||||
ALLOW_METADATA
|
ALLOW_METADATA
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user