mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
[TGUI] [FIX] Bluescreen on AI Bot interface (#25696)
* 8, 9, 10 additions and comment * bundle * bundle
This commit is contained in:
@@ -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
Reference in New Issue
Block a user