Skip to content

Commit

Permalink
fix departments observe
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Jul 13, 2024
1 parent 2fced94 commit 5585821
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tgui/packages/tgui/interfaces/Orbit/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ReverseJobsRu } from '../../bandastation/ru_jobs'; // BANDASTATION EDIT
import { DEPARTMENT2COLOR, HEALTH, THREAT, VIEWMODE } from './constants';
import { AntagGroup, Antagonist, Observable, ViewMode } from './types';

Expand Down Expand Up @@ -46,7 +47,7 @@ export function getDisplayName(full_name: string, nickname?: string): string {

/** Returns the department the player is in */
export function getDepartmentByJob(job: string): string | undefined {
const withoutParenthesis = job.replace(/ \(.*\)/, '');
const withoutParenthesis = ReverseJobsRu(job).replace(/ \(.*\)/, '');

for (const department in DEPARTMENT2COLOR) {
if (DEPARTMENT2COLOR[department].trims.includes(withoutParenthesis)) {
Expand Down

0 comments on commit 5585821

Please sign in to comment.