[MIRROR] Circuit component descriptions and module names are now visible to the naked eye. (#7290)

* Circuit component descriptions and module names are now visible to the naked eye. (#60545)

* Circuit component descriptions and module names are now visible to the naked eye.

Co-authored-by: Gurkenglas <gurkenglas@hotmail.de>
This commit is contained in:
SkyratBot
2021-08-01 11:42:08 +01:00
committed by GitHub
co-authored by Gurkenglas
parent 842f59fed5
commit 170863cfd7
54 changed files with 61 additions and 62 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
/obj/item/circuit_component/medical_console_data
display_name = "Crew Monitoring Data"
display_desc = "Outputs the medical statuses of people on the crew monitoring computer, where it can then be filtered with a Select Query component."
desc = "Outputs the medical statuses of people on the crew monitoring computer, where it can then be filtered with a Select Query component."
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
/// The records retrieved
@@ -18,7 +18,7 @@
/obj/item/circuit_component/bluespace_launchpad
display_name = "Bluespace Launchpad Console"
display_desc = "Teleports anything to and from any location on the station. Doesn't use actual GPS coordinates, but rather offsets from the launchpad itself. Can only go as far as the launchpad can go, which depends on its parts."
desc = "Teleports anything to and from any location on the station. Doesn't use actual GPS coordinates, but rather offsets from the launchpad itself. Can only go as far as the launchpad can go, which depends on its parts."
var/datum/port/input/launchpad_id
var/datum/port/input/x_pos
+2 -2
View File
@@ -28,7 +28,7 @@
/obj/item/circuit_component/arrest_console_data
display_name = "Security Records Data"
display_desc = "Outputs the security records data, where it can then be filtered with a Select Query component"
desc = "Outputs the security records data, where it can then be filtered with a Select Query component"
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
/// The records retrieved
@@ -101,7 +101,7 @@
/obj/item/circuit_component/arrest_console_arrest
display_name = "Security Records Set Status"
display_desc = "Receives a table to use to set people's arrest status. Table should be from the security records data component. If New Status port isn't set, the status will be decided by the options."
desc = "Receives a table to use to set people's arrest status. Table should be from the security records data component. If New Status port isn't set, the status will be decided by the options."
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
/// The targets to set the status of.
@@ -88,7 +88,7 @@ It's like a regular ol' straight pipe, but you can turn it on and off.
/obj/item/circuit_component/digital_valve
display_name = "Digital Valve"
display_desc = "The interface for communicating with a digital valve."
desc = "The interface for communicating with a digital valve."
var/obj/machinery/atmospherics/components/binary/valve/digital/attached_valve
@@ -41,7 +41,7 @@
. = ..()
if(build_path)
var/obj/item/circuit_component/component_path = build_path
desc = initial(component_path.display_desc)
desc = initial(component_path.desc)
/datum/design/component/arithmetic
name = "Arithmetic Component"
-3
View File
@@ -16,9 +16,6 @@
/// The name of the component shown on the UI
var/display_name = "Generic"
/// The description of the component shown on the UI
var/display_desc = "A generic component"
/// The integrated_circuit that this component is attached to.
var/obj/item/integrated_circuit/parent
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/module
display_name = "Module"
display_desc = "A component that has other components within it, acting like a function. Use it in your hand to control the amount of input and output ports it has, as well as being able to access the integrated circuit contained inside."
desc = "A component that has other components within it, acting like a function. Use it in your hand to control the amount of input and output ports it has, as well as being able to access the integrated circuit contained inside."
var/obj/item/integrated_circuit/module/internal_circuit
@@ -28,6 +28,7 @@
/obj/item/integrated_circuit/module/set_display_name(new_name)
. = ..()
attached_module.display_name = new_name
attached_module.name = "module ([new_name])"
/obj/item/integrated_circuit/module/load_component(type)
if(!attached_module)
@@ -47,7 +48,7 @@
/obj/item/circuit_component/module_input
display_name = "Input"
display_desc = "A component that receives data from the module it is attached to"
desc = "A component that receives data from the module it is attached to"
removable = FALSE
@@ -60,7 +61,7 @@
/obj/item/circuit_component/module_output
display_name = "Output"
display_desc = "A component that outputs data to the module it is attached to."
desc = "A component that outputs data to the module it is attached to."
removable = FALSE
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/light
display_name = "Light"
display_desc = "A component that emits a light of a specific brightness and colour. Requires a shell."
desc = "A component that emits a light of a specific brightness and colour. Requires a shell."
/// The colours of the light
var/datum/port/input/red
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/mmi
display_name = "Man-Machine Interface"
display_desc = "A component that allows MMI to enter shells to send output signals."
desc = "A component that allows MMI to enter shells to send output signals."
/// The message to send to the MMI in the shell.
var/datum/port/input/message
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/pathfind
display_name = "Pathfinder"
display_desc = "When triggered, the next step to the target's location as an entity. This can be used with the direction component and the drone shell to make it move on its own. The Id Card input port is for considering ID access when pathing, it does not give the shell actual access."
desc = "When triggered, the next step to the target's location as an entity. This can be used with the direction component and the drone shell to make it move on its own. The Id Card input port is for considering ID access when pathing, it does not give the shell actual access."
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
var/datum/port/input/input_X
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/pull
display_name = "Start Pulling"
display_desc = "A component that can force the shell to pull entities. Only works for drone shells."
desc = "A component that can force the shell to pull entities. Only works for drone shells."
/// Frequency input
var/datum/port/input/target
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/radio
display_name = "Radio"
display_desc = "A component that can listen and send frequencies. If set to private, the component will only receive signals from other components attached to circuitboards with the same owner id."
desc = "A component that can listen and send frequencies. If set to private, the component will only receive signals from other components attached to circuitboards with the same owner id."
/// Frequency input
var/datum/port/input/freq
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/soundemitter
display_name = "Sound Emitter"
display_desc = "A component that emits a sound when it receives an input. The frequency is a multiplier which determines the speed at which the sound is played"
desc = "A component that emits a sound when it receives an input. The frequency is a multiplier which determines the speed at which the sound is played"
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
/// Volume of the sound when played
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/speech
display_name = "Speech"
display_desc = "A component that sends a message. Requires a shell."
desc = "A component that sends a message. Requires a shell."
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
/// The message to send
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/direction
display_name = "Get Direction"
display_desc = "A component that returns the direction of itself and an entity."
desc = "A component that returns the direction of itself and an entity."
/// The input port
var/datum/port/input/input_port
+1 -1
View File
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/gps
display_name = "Internal GPS"
display_desc = "A component that returns the xyz co-ordinates of itself."
desc = "A component that returns the xyz co-ordinates of itself."
/// The result from the output
var/datum/port/output/x_pos
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/health
display_name = "Get Health"
display_desc = "A component that returns the health of an organism."
desc = "A component that returns the health of an organism."
/// The input port
var/datum/port/input/input_port
+1 -1
View File
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/hear
display_name = "Voice Activator"
display_desc = "A component that listens for messages. Requires a shell."
desc = "A component that listens for messages. Requires a shell."
/// The message heard
var/datum/port/output/message_port
+1 -1
View File
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/self
display_name = "Self"
display_desc = "A component that returns the current shell."
desc = "A component that returns the current shell."
/// The shell this component is attached to.
var/datum/port/output/output
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/species
display_name = "Get Species"
display_desc = "A component that returns the species of its input."
desc = "A component that returns the species of its input."
/// The input port
var/datum/port/input/input_port
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/concat_list
display_name = "Concatenate List"
display_desc = "A component that joins up a list with a separator into a single string."
desc = "A component that joins up a list with a separator into a single string."
/// The input port
var/datum/port/input/list_port
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/get_column
display_name = "Get Column"
display_desc = "Gets the column of a table and returns it as a regular list."
desc = "Gets the column of a table and returns it as a regular list."
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
/// The list to perform the filter on
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/index
display_name = "Index List"
display_desc = "A component that returns the value of a list at a given index."
desc = "A component that returns the value of a list at a given index."
/// The input port
var/datum/port/input/list_port
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/index_table
display_name = "Index Table"
display_desc = "Gets the row of a table using the index inputted. Will return no value if the index is invalid or a proper table is not returned."
desc = "Gets the row of a table using the index inputted. Will return no value if the index is invalid or a proper table is not returned."
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
/// The list to perform the filter on
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/select
display_name = "Select Query"
display_desc = "A component used with USB cables that can perform select queries on a list based on the column name selected. The values are then compared with the comparison input."
desc = "A component used with USB cables that can perform select queries on a list based on the column name selected. The values are then compared with the comparison input."
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
/// The list to perform the filter on
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/split
display_name = "Split"
display_desc = "Splits a string by the separator, turning it into a list"
desc = "Splits a string by the separator, turning it into a list"
/// The input port
var/datum/port/input/input_port
@@ -6,7 +6,7 @@
*/
/obj/item/circuit_component/arithmetic
display_name = "Arithmetic"
display_desc = "General arithmetic component with arithmetic capabilities."
desc = "General arithmetic component with arithmetic capabilities."
/// The amount of input ports to have
var/input_port_amount = 4
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/compare/comparison
display_name = "Comparison"
display_desc = "A component that compares two objects."
desc = "A component that compares two objects."
input_port_amount = 2
var/current_type = PORT_TYPE_ANY
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/length
display_name = "Length"
display_desc = "A component that returns the length of its input."
desc = "A component that returns the length of its input."
/// The input port
var/datum/port/input/input_port
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/compare/logic
display_name = "Logic"
display_desc = "A component with 'and' and 'or' capabilities."
desc = "A component with 'and' and 'or' capabilities."
/obj/item/circuit_component/compare/logic/populate_options()
var/static/component_options = list(
+1 -1
View File
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/not
display_name = "Not"
display_desc = "A component that inverts its input."
desc = "A component that inverts its input."
/// The input port
var/datum/port/input/input_port
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/random
display_name = "Random"
display_desc = "A component that returns random values."
desc = "A component that returns random values."
/// The minimum value that the random number can be
var/datum/port/input/minimum
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/pressuresensor
display_name = "Pressure Sensor"
display_desc = "Outputs the current pressure of the tile"
desc = "Outputs the current pressure of the tile"
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/tempsensor
display_name = "Temperature Sensor"
display_desc = "Outputs the current temperature of the tile"
desc = "Outputs the current temperature of the tile"
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/concat
display_name = "Concatenate"
display_desc = "A component that combines strings."
desc = "A component that combines strings."
/// The amount of input ports to have
var/input_port_amount = 4
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/compare/contains
display_name = "String Contains"
display_desc = "Checks if a string contains a word/letter"
desc = "Checks if a string contains a word/letter"
input_port_amount = 0
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/textcase
display_name = "Text Case"
display_desc = "A component that makes its input uppercase or lowercase."
desc = "A component that makes its input uppercase or lowercase."
/// The input port
var/datum/port/input/input_port
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/tonumber
display_name = "To Number"
display_desc = "A component that converts its input (a string) to a number. If there's text in the input, it'll only consider it if it starts with a number. It will take that number and ignore the rest."
desc = "A component that converts its input (a string) to a number. If there's text in the input, it'll only consider it if it starts with a number. It will take that number and ignore the rest."
/// The input port
var/datum/port/input/input_port
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/tostring
display_name = "To String"
display_desc = "A component that converts its input to text."
desc = "A component that converts its input to text."
/// The input port
var/datum/port/input/input_port
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/clock
display_name = "Clock"
display_desc = "A component that repeatedly fires."
desc = "A component that repeatedly fires."
/// Whether the clock is on or not
var/datum/port/input/on
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/combiner
display_name = "Combiner"
display_desc = "A component that combines multiple inputs to provide 1 output."
desc = "A component that combines multiple inputs to provide 1 output."
/// The amount of input ports to have
var/input_port_amount = 4
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/delay
display_name = "Delay"
display_desc = "A component that delays a signal by a specified duration."
desc = "A component that delays a signal by a specified duration."
/// Amount to delay by
var/datum/port/input/delay_amount
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/multiplexer
display_name = "Multiplexer"
display_desc = "A component that allows you to selectively choose which input port provides an output. The first port is the selector and takes a number between 1 and the maximum port amount."
desc = "A component that allows you to selectively choose which input port provides an output. The first port is the selector and takes a number between 1 and the maximum port amount."
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
/// The port to select from, goes from 1 to input_port_amount
@@ -7,7 +7,7 @@
*/
/obj/item/circuit_component/ram
display_name = "RAM"
display_desc = "A component that retains a variable."
desc = "A component that retains a variable."
circuit_flags = CIRCUIT_FLAG_OUTPUT_SIGNAL
/// The input to store
@@ -5,7 +5,7 @@
*/
/obj/item/circuit_component/compare/typecheck
display_name = "Typecheck"
display_desc = "A component that checks the type of its input."
desc = "A component that checks the type of its input."
input_port_amount = 1
+2 -1
View File
@@ -7,6 +7,7 @@
*/
/obj/item/integrated_circuit
name = "integrated circuit"
desc = "By inserting components and a cell into this, wiring them up, and putting them into a shell, anyone can pretend to be a programmer."
icon = 'icons/obj/module.dmi'
icon_state = "integrated_circuit"
inhand_icon_state = "electronic"
@@ -266,7 +267,7 @@
examined = examined_component.resolve()
.["examined_name"] = examined?.display_name
.["examined_desc"] = examined?.display_desc
.["examined_desc"] = examined?.desc
.["examined_notices"] = examined?.get_ui_notices()
.["examined_rel_x"] = examined_rel_x
.["examined_rel_y"] = examined_rel_y
+1 -1
View File
@@ -35,7 +35,7 @@
/obj/item/circuit_component/airlock
display_name = "Airlock"
display_desc = "The general interface with an airlock. Includes general statuses of the airlock"
desc = "The general interface with an airlock. Includes general statuses of the airlock"
/// Called when attack_hand is called on the shell.
var/obj/machinery/door/airlock/attached_airlock
+1 -1
View File
@@ -23,7 +23,7 @@
/obj/item/circuit_component/bot
display_name = "Bot"
display_desc = "Triggers when someone interacts with the bot."
desc = "Triggers when someone interacts with the bot."
/// Called when attack_hand is called on the shell.
var/datum/port/output/signal
@@ -35,11 +35,11 @@
/obj/item/circuit_component/bci
display_name = "Brain-Computer Interface"
display_desc = "Used to receive inputs for the brain-computer interface. User is presented with three buttons."
desc = "Used to receive inputs for the brain-computer interface. User is presented with three buttons."
/obj/item/circuit_component/bci_action
display_name = "BCI Action"
display_desc = "Represents an action the user can take when implanted with the brain-computer interface."
desc = "Represents an action the user can take when implanted with the brain-computer interface."
/// The name to use for the button
var/datum/port/input/button_name
@@ -155,7 +155,7 @@
/obj/item/circuit_component/bci_core
display_name = "BCI Core"
display_desc = "Controls the core operations of the BCI."
desc = "Controls the core operations of the BCI."
/// A reference to the action button to look at charge/get info
var/datum/action/innate/bci_charge_action/charge_action
+1 -1
View File
@@ -22,7 +22,7 @@
/obj/item/circuit_component/compact_remote
display_name = "Compact Remote"
display_desc = "Used to receive inputs from the compact remote shell. Use the shell in hand to trigger the output signal."
desc = "Used to receive inputs from the compact remote shell. Use the shell in hand to trigger the output signal."
/// Called when attack_self is called on the shell.
var/datum/port/output/signal
+1 -1
View File
@@ -23,7 +23,7 @@
/obj/item/circuit_component/controller
display_name = "Controller"
display_desc = "Used to receive inputs from the controller shell. Use the shell in hand to trigger the output signal. Alt-click for the alternate signal. Right click for the extra signal."
desc = "Used to receive inputs from the controller shell. Use the shell in hand to trigger the output signal. Alt-click for the alternate signal. Right click for the extra signal."
/// The three separate buttons that are called in attack_hand on the shell.
var/datum/port/output/signal
+1 -1
View File
@@ -27,7 +27,7 @@
/obj/item/circuit_component/bot_circuit
display_name = "Drone"
display_desc = "Used to send movement output signals to the drone shell."
desc = "Used to send movement output signals to the drone shell."
/// The inputs to allow for the drone to move
var/datum/port/input/north
+2 -2
View File
@@ -38,7 +38,7 @@
/obj/item/circuit_component/money_dispenser
display_name = "Money Dispenser"
display_desc = "Used to dispense money from the money bot. Money is taken from the internal storage of money."
desc = "Used to dispense money from the money bot. Money is taken from the internal storage of money."
circuit_flags = CIRCUIT_FLAG_INPUT_SIGNAL|CIRCUIT_FLAG_OUTPUT_SIGNAL
/// The amount of money to dispense
@@ -82,7 +82,7 @@
/obj/item/circuit_component/money_bot
display_name = "Money Bot"
var/obj/structure/money_bot/attached_bot
display_desc = "Used to receive input signals when money is inserted into the money bot shell and also keep track of the total money in the shell."
desc = "Used to receive input signals when money is inserted into the money bot shell and also keep track of the total money in the shell."
/// Total money in the shell
var/datum/port/output/total_money
+1 -1
View File
@@ -22,7 +22,7 @@
/obj/item/circuit_component/wiremod_scanner
display_name = "Scanner"
display_desc = "Used to receive scanned entities from the scanner."
desc = "Used to receive scanned entities from the scanner."
/// Called when afterattack is called on the shell.
var/datum/port/output/signal