From 3579c3c230d1d1d694b28f74346ff83461f9ea82 Mon Sep 17 00:00:00 2001 From: forest2001 Date: Mon, 3 Jun 2024 17:41:27 +0100 Subject: [PATCH 1/2] forsaken --- tgui/packages/tgui/interfaces/Orbit/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tgui/packages/tgui/interfaces/Orbit/index.tsx b/tgui/packages/tgui/interfaces/Orbit/index.tsx index bc440e733939..1f62c8df14da 100644 --- a/tgui/packages/tgui/interfaces/Orbit/index.tsx +++ b/tgui/packages/tgui/interfaces/Orbit/index.tsx @@ -129,10 +129,13 @@ const ObservableSearch = () => { const xenoSplitter = (members: Array) => { const primeHive: Array = []; const corruptedHive: Array = []; + const forsakenHive: Array = []; members.forEach((x) => { if (x.full_name?.includes('Corrupted')) { corruptedHive.push(x); + } else if (x.full_name?.includes('Forsaken')) { + forsakenHive.push(x); } else { primeHive.push(x); } @@ -140,6 +143,7 @@ const xenoSplitter = (members: Array) => { const squads = [ buildSquadObservable('Prime', 'xeno', primeHive), buildSquadObservable('Corrupted', 'green', corruptedHive), + buildSquadObservable('Forsaken', 'grey', forsakenHive), ]; return squads; }; From c0d3b6616fb6ee11bcbbb53ab1597e7dba97130f Mon Sep 17 00:00:00 2001 From: forest2001 Date: Mon, 3 Jun 2024 17:57:00 +0100 Subject: [PATCH 2/2] woo --- code/modules/mob/dead/observer/orbit.dm | 1 + tgui/packages/tgui/interfaces/Orbit/index.tsx | 10 +++++++--- tgui/packages/tgui/interfaces/Orbit/types.ts | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/dead/observer/orbit.dm b/code/modules/mob/dead/observer/orbit.dm index d6b104398f99..1cb301e96c07 100644 --- a/code/modules/mob/dead/observer/orbit.dm +++ b/code/modules/mob/dead/observer/orbit.dm @@ -118,6 +118,7 @@ var/datum/caste_datum/caste = xeno.caste serialized["caste"] = caste.caste_type serialized["icon"] = caste.minimap_icon + serialized["hivenumber"] = xeno.hivenumber xenos += list(serialized) continue diff --git a/tgui/packages/tgui/interfaces/Orbit/index.tsx b/tgui/packages/tgui/interfaces/Orbit/index.tsx index 1f62c8df14da..6b7089915514 100644 --- a/tgui/packages/tgui/interfaces/Orbit/index.tsx +++ b/tgui/packages/tgui/interfaces/Orbit/index.tsx @@ -130,20 +130,24 @@ const xenoSplitter = (members: Array) => { const primeHive: Array = []; const corruptedHive: Array = []; const forsakenHive: Array = []; + const otherHives: Array = []; members.forEach((x) => { - if (x.full_name?.includes('Corrupted')) { + if (x.hivenumber?.includes('normal')) { + primeHive.push(x); + } else if (x.hivenumber?.includes('corrupted')) { corruptedHive.push(x); - } else if (x.full_name?.includes('Forsaken')) { + } else if (x.hivenumber?.includes('forsaken')) { forsakenHive.push(x); } else { - primeHive.push(x); + otherHives.push(x); } }); const squads = [ buildSquadObservable('Prime', 'xeno', primeHive), buildSquadObservable('Corrupted', 'green', corruptedHive), buildSquadObservable('Forsaken', 'grey', forsakenHive), + buildSquadObservable('Other', 'light-grey', otherHives), ]; return squads; }; diff --git a/tgui/packages/tgui/interfaces/Orbit/types.ts b/tgui/packages/tgui/interfaces/Orbit/types.ts index 8318a91f1c89..ca21898287d0 100644 --- a/tgui/packages/tgui/interfaces/Orbit/types.ts +++ b/tgui/packages/tgui/interfaces/Orbit/types.ts @@ -38,6 +38,7 @@ export type Observable = { nickname?: string; orbiters?: number; ref: string; + hivenumber: string; }; export type SquadObservable = {