diff --git a/code/game/objects/items/weapons/RCD.dm b/code/game/objects/items/weapons/RCD.dm index 32297c4ffd4..cf299cb6580 100644 --- a/code/game/objects/items/weapons/RCD.dm +++ b/code/game/objects/items/weapons/RCD.dm @@ -51,7 +51,7 @@ var/ui_tab = TAB_AIRLOCK_TYPE /// A list of access numbers which have been checked off by the user in the UI. var/list/selected_accesses = list() - /// A list of objects that block construction if said object is on the tile the RCD is trying to build on. + /// A list of valid atoms that RCDs can target. Clicking on an atom with an RCD which is not in this list, will do nothing. var/static/list/allowed_targets = list(/turf, /obj/structure/grille, /obj/structure/window, /obj/structure/lattice, /obj/machinery/door/airlock) /// An associative list of airlock type paths as keys, and their names as values. var/static/list/rcd_door_types = list() diff --git a/tgui/packages/tgui/interfaces/RCD.js b/tgui/packages/tgui/interfaces/RCD.js index fd2942b4bec..d993bce21ec 100644 --- a/tgui/packages/tgui/interfaces/RCD.js +++ b/tgui/packages/tgui/interfaces/RCD.js @@ -5,7 +5,7 @@ import { ComplexModal, modalOpen } from "./common/ComplexModal"; import { AccessList } from './common/AccessList'; import { Fragment } from "inferno"; -export const RCD = () => { +export const RCD = (props, context) => { return ( @@ -67,10 +67,11 @@ const ConstructionType = () => { const ConstructionTypeCheckbox = (props, context) => { const { act, data } = useBackend(context); const { mode_type } = props; + const { mode } = data; return ( act('mode', { mode: mode_type, })} /> @@ -79,6 +80,7 @@ const ConstructionTypeCheckbox = (props, context) => { const AirlockSettings = (props, context) => { const { data } = useBackend(context); + const { door_name } = data; return (
{ height={5.5}> - {data.door_name} + {door_name}