Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit fe7698e

Browse files
authored
[admin] Changes orbit menu section title to mention that you can see all antagonists as admin (#22882)
1 parent 0a35421 commit fe7698e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

code/modules/mob/dead/observer/orbit.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
data["ghosts"] = ghosts
105105
data["misc"] = misc
106106
data["npcs"] = npcs
107+
data["is_admin"] = is_admin(user)
107108
return data
108109

109110
/datum/orbit_menu/ui_assets()

tgui/packages/tgui/interfaces/Orbit.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export const Orbit = (props, context) => {
8484
auto_observe,
8585
dead,
8686
ghosts,
87+
is_admin,
8788
misc,
8889
npcs,
8990
} = data;
@@ -164,7 +165,7 @@ export const Orbit = (props, context) => {
164165
</Flex>
165166
</Section>
166167
{antagonists.length > 0 && (
167-
<Section title="Ghost-Visible Antagonists">
168+
<Section title={is_admin ? "Antagonists" : "Ghost-Visible Antagonists"}>
168169
{sortedAntagonists.map(([name, antags]) => (
169170
<BasicSection
170171
key={name}

0 commit comments

Comments
 (0)