From 20c30a15d1594646f2a0925e51e61cb11943a3ed Mon Sep 17 00:00:00 2001
From: Ghom <42542238+Ghommie@users.noreply.github.com>
Date: Mon, 20 Jan 2020 03:24:46 +0100
Subject: [PATCH] Merge pull request #10597 from
Putnam3145/player-panel-can-reenter
Ghost role eligibility activation in player panel
---
.../datums/elements/ghost_role_eligibility.dm | 2 +
code/modules/admin/admin.dm | 40 +++++++++--
code/modules/admin/topic.dm | 69 ++++++++++++++++++-
modular_citadel/code/modules/admin/admin.dm | 39 -----------
modular_citadel/code/modules/admin/topic.dm | 59 ----------------
tgstation.dme | 2 -
6 files changed, 106 insertions(+), 105 deletions(-)
delete mode 100644 modular_citadel/code/modules/admin/admin.dm
delete mode 100644 modular_citadel/code/modules/admin/topic.dm
diff --git a/code/datums/elements/ghost_role_eligibility.dm b/code/datums/elements/ghost_role_eligibility.dm
index 8ecb579b..e57aaddd 100644
--- a/code/datums/elements/ghost_role_eligibility.dm
+++ b/code/datums/elements/ghost_role_eligibility.dm
@@ -22,6 +22,8 @@
if(!(M.ckey in timeouts))
timeouts += M.ckey
timeouts[M.ckey] = 0
+ else if(timeouts[M.ckey] == CANT_REENTER_ROUND)
+ return
timeouts[M.ckey] = max(timeouts[M.ckey],penalty)
/datum/element/ghost_role_eligibility/Detach(mob/M)
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index 3d9c9bcd..8c684ecc 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -190,7 +190,6 @@
body += "Shade"
body += "
"
- if (M.client)
body += "
"
body += "Other actions:"
body += "
"
@@ -199,9 +198,9 @@
body += "Thunderdome 2 | "
body += "Thunderdome Admin | "
body += "Thunderdome Observer | "
-
- body += usr.client.citaPPoptions(M) // CITADEL
-
+ body += "Make mentor | "
+ body += "Remove mentor"
+ body += "Allow reentering round"
body += "
"
body += "