[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
@@ -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