diff --git a/code/modules/tgui/modules/ai_controller_debugger.dm b/code/modules/tgui/modules/ai_controller_debugger.dm index 69b7760d2e0..baf36a955ec 100644 --- a/code/modules/tgui/modules/ai_controller_debugger.dm +++ b/code/modules/tgui/modules/ai_controller_debugger.dm @@ -39,9 +39,13 @@ "name" = "[controller.pawn]", "uid" = controller.pawn.UID(), ) + data["controller"]["ai_status"] = controller.ai_status data["controller"]["type"] = "[controller.type]" data["controller"]["idle_behavior"] = "[controller.idle_behavior]" data["controller"]["movement"] = "[controller.ai_movement]" + data["controller"]["movement_delay"] = controller.movement_delay + data["controller"]["able_to_plan"] = controller.able_to_plan + data["controller"]["on_failed_planning_timeout"] = controller.on_failed_planning_timeout var/datum/movement_target = controller.current_movement_target if(istype(movement_target)) data["controller"]["movement_target"] = list( diff --git a/tgui/packages/tgui/interfaces/AIControllerDebugger.tsx b/tgui/packages/tgui/interfaces/AIControllerDebugger.tsx index ce20322ed90..103dd937c4e 100644 --- a/tgui/packages/tgui/interfaces/AIControllerDebugger.tsx +++ b/tgui/packages/tgui/interfaces/AIControllerDebugger.tsx @@ -1,10 +1,9 @@ -import { ReactNode } from 'react'; -import { Box, Button, Flex, LabeledList, NoticeBox, Section, Stack, Table, Tabs, Tooltip } from 'tgui-core/components'; +import { truncate } from 'lodash'; +import { Box, Button, Section, Stack, Table, Tooltip } from 'tgui-core/components'; import { BooleanLike } from 'tgui-core/react'; import { useBackend } from '../backend'; import { Window } from '../layouts'; -import { truncate } from 'lodash'; interface AIControllerDebuggerData { controller: AIController; @@ -20,6 +19,10 @@ interface AIController { pawn?: ObjRef; idle_behavior: string; movement: string; + movement_delay: number; + able_to_plan: BooleanLike; + on_failed_planning_timeout: BooleanLike; + ai_status: string; movement_target?: MovementTarget; current_behaviors: string[]; planned_behaviors: string[]; @@ -74,6 +77,12 @@ export const AIControllerDebugger = (props) => { )} +