From 0875409ae8bd3bd065daea5a8667a5507cff5ecd Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 18 Dec 2021 18:28:59 +0100 Subject: [PATCH] Fixes bug in playerpanel javascript relating to cyborgs (#10086) Co-authored-by: oranges Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com> --- code/__DEFINES/jobs.dm | 13 +++++++++++++ code/modules/admin/player_panel.dm | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/code/__DEFINES/jobs.dm b/code/__DEFINES/jobs.dm index 46cd6aff4b7..959d7d30b1a 100644 --- a/code/__DEFINES/jobs.dm +++ b/code/__DEFINES/jobs.dm @@ -13,6 +13,19 @@ #define JOB_DISPLAY_ORDER_DEFAULT 0 + +/** + * ======================= + * WARNING WARNING WARNING + * WARNING WARNING WARNING + * WARNING WARNING WARNING + * ======================= + * These names are used as keys in many locations in the database + * you cannot change them trivially without breaking job bans and + * role time tracking, if you do this and get it wrong you will die + * and it will hurt the entire time + */ + //No department #define JOB_ASSISTANT "Assistant" #define JOB_PRISONER "Prisoner" diff --git a/code/modules/admin/player_panel.dm b/code/modules/admin/player_panel.dm index f601969520e..f7aad8f38a3 100644 --- a/code/modules/admin/player_panel.dm +++ b/code/modules/admin/player_panel.dm @@ -85,7 +85,7 @@ body += "VV - " body += "SP - " body += "TP - " - if (job == JOB_CYBORG) + if (job == "Cyborg") body += "BP - " body += "PM - " body += "SM - "