[TGUI] [FIX] Bluescreen on AI Bot interface (#25696)

* 8, 9, 10 additions and comment

* bundle

* bundle
This commit is contained in:
Deniz
2024-05-30 20:40:16 +00:00
committed by GitHub
parent 38e393aff3
commit 0f00665183
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -4,13 +4,19 @@ import { Window } from '../layouts';
const BotStatus = (mode) => {
const statusMap = [
// magic numbers are from bots.dm under mode defines
{ modes: [0], label: 'Idle', color: 'green' },
{ modes: [1, 2, 3], label: 'Arresting', color: 'yellow' },
{ modes: [4, 5], label: 'Patrolling', color: 'average' },
{ modes: [9], label: 'Moving', color: 'average' },
{ modes: [6, 11], label: 'Responding', color: 'green' },
{ modes: [12], label: 'Delivering Cargo', color: 'blue' },
{ modes: [13], label: 'Returning Home', color: 'blue' },
{ modes: [7, 14, 15, 16, 17, 18, 19], label: 'Working', color: 'blue' },
{
modes: [7, 8, 10, 14, 15, 16, 17, 18, 19],
label: 'Working',
color: 'blue',
},
];
const matchedStatus = statusMap.find((mapping) =>
File diff suppressed because one or more lines are too long