diff --git a/code/__DEFINES/machines.dm b/code/__DEFINES/machines.dm
index 23b44679a9d..b46427979fb 100644
--- a/code/__DEFINES/machines.dm
+++ b/code/__DEFINES/machines.dm
@@ -71,3 +71,10 @@
#define PROGRAM_STATE_KILLED 0
#define PROGRAM_STATE_BACKGROUND 1
#define PROGRAM_STATE_ACTIVE 2
+
+// Demotion Console (card/minor/*) departments
+#define TARGET_DEPT_GENERIC 1
+#define TARGET_DEPT_SEC 2
+#define TARGET_DEPT_MED 3
+#define TARGET_DEPT_SCI 4
+#define TARGET_DEPT_ENG 5
\ No newline at end of file
diff --git a/code/game/machinery/computer/buildandrepair.dm b/code/game/machinery/computer/buildandrepair.dm
index f893a107966..1dc88f9663d 100644
--- a/code/game/machinery/computer/buildandrepair.dm
+++ b/code/game/machinery/computer/buildandrepair.dm
@@ -83,23 +83,23 @@
/obj/item/weapon/circuitboard/card/minor
name = "Circuit board (Dept ID Computer)"
build_path = /obj/machinery/computer/card/minor
- var/target_dept = 1
+ var/target_dept = TARGET_DEPT_GENERIC
/obj/item/weapon/circuitboard/card/minor/hos
name = "Circuit board (Sec ID Computer)"
build_path = /obj/machinery/computer/card/minor/hos
- target_dept = 2
+ target_dept = TARGET_DEPT_SEC
/obj/item/weapon/circuitboard/card/minor/cmo
name = "Circuit board (Medical ID Computer)"
build_path = /obj/machinery/computer/card/minor/cmo
- target_dept = 3
+ target_dept = TARGET_DEPT_MED
/obj/item/weapon/circuitboard/card/minor/rd
name = "Circuit board (Science ID Computer)"
build_path = /obj/machinery/computer/card/minor/rd
- target_dept = 4
+ target_dept = TARGET_DEPT_SCI
/obj/item/weapon/circuitboard/card/minor/ce
name = "Circuit board (Engineering ID Computer)"
build_path = /obj/machinery/computer/card/minor/ce
- target_dept = 5
+ target_dept = TARGET_DEPT_ENG
/obj/item/weapon/circuitboard/card/centcom
name = "Circuit board (CentComm ID Computer)"
build_path = /obj/machinery/computer/card/centcom
diff --git a/code/game/machinery/computer/card.dm b/code/game/machinery/computer/card.dm
index 7f542f0199f..a6c072fec60 100644
--- a/code/game/machinery/computer/card.dm
+++ b/code/game/machinery/computer/card.dm
@@ -337,10 +337,10 @@ var/time_last_changed_position = 0
if(is_authenticated(usr) && modify)
var/t1 = href_list["assign_target"]
if(target_dept && modify.assignment == "Unassigned")
- src.visible_message("[src]: Demoted individuals must see the HoP for a new job.")
+ visible_message("[src]: Demoted individuals must see the HoP for a new job.")
return 0
if(!job_in_department(job_master.GetJob(modify.rank), FALSE))
- src.visible_message("[src]: Cross-department job transfers must be done by the HoP.")
+ visible_message("[src]: Cross-department job transfers must be done by the HoP.")
return 0
if(!job_in_department(job_master.GetJob(t1)))
return 0
@@ -381,7 +381,7 @@ var/time_last_changed_position = 0
if(temp_name)
modify.registered_name = temp_name
else
- src.visible_message("[src] buzzes rudely.")
+ visible_message("[src] buzzes rudely.")
nanomanager.update_uis(src)
if("account")
@@ -437,10 +437,10 @@ var/time_last_changed_position = 0
if("demote")
if(is_authenticated(usr))
if(modify.assignment == "Unassigned")
- src.visible_message("[src]: Unassigned crew cannot be demoted any further. If further action is warranted, ask the Captain about Termination.")
+ visible_message("[src]: Unassigned crew cannot be demoted any further. If further action is warranted, ask the Captain about Termination.")
return 0
if(!job_in_department(job_master.GetJob(modify.rank), FALSE))
- src.visible_message("[src]: Heads may only demote members of their own department.")
+ visible_message("[src]: Heads may only demote members of their own department.")
return 0
var/list/access = list()
@@ -501,17 +501,16 @@ var/time_last_changed_position = 0
change_position_cooldown = -1
blacklisted = list()
-
/obj/machinery/computer/card/minor
name = "department management console"
- target_dept = 1
+ target_dept = TARGET_DEPT_GENERIC
desc = "You can use this to change ID's for specific departments."
icon_screen = "idminor"
circuit = /obj/item/weapon/circuitboard/card/minor
/obj/machinery/computer/card/minor/hos
name = "security management console"
- target_dept = 2
+ target_dept = TARGET_DEPT_SEC
icon_screen = "idhos"
light_color = LIGHT_COLOR_RED
req_access = list(access_hos)
@@ -519,14 +518,14 @@ var/time_last_changed_position = 0
/obj/machinery/computer/card/minor/cmo
name = "medical management console"
- target_dept = 3
+ target_dept = TARGET_DEPT_MED
icon_screen = "idcmo"
req_access = list(access_cmo)
circuit = /obj/item/weapon/circuitboard/card/minor/cmo
/obj/machinery/computer/card/minor/rd
name = "science management console"
- target_dept = 4
+ target_dept = TARGET_DEPT_SCI
icon_screen = "idrd"
light_color = LIGHT_COLOR_PINK
req_access = list(access_rd)
@@ -534,7 +533,7 @@ var/time_last_changed_position = 0
/obj/machinery/computer/card/minor/ce
name = "engineering management console"
- target_dept = 5
+ target_dept = TARGET_DEPT_ENG
icon_screen = "idce"
light_color = COLOR_YELLOW
req_access = list(access_ce)