diff --git a/code/game/objects/items/weapons/storage/belt.dm b/code/game/objects/items/weapons/storage/belt.dm
index 95dfb1e214da9..fa39d528fdb0d 100644
--- a/code/game/objects/items/weapons/storage/belt.dm
+++ b/code/game/objects/items/weapons/storage/belt.dm
@@ -29,8 +29,8 @@
/obj/item/stack/cable_coil,
/obj/item/device/t_scanner,
/obj/item/device/analyzer,
- /obj/item/weapon/extinguisher/mini
- /obj/item/device/integrated_electronics/wirer,
+ /obj/item/weapon/extinguisher/mini,
+ /obj/item/device/integrated_electronics/wirer
)
/obj/item/weapon/storage/belt/utility/full/New()
diff --git a/code/modules/integrated_electronics/_defines.dm b/code/modules/integrated_electronics/_defines.dm
index 737b1914614b3..ed4be623c7bf7 100644
--- a/code/modules/integrated_electronics/_defines.dm
+++ b/code/modules/integrated_electronics/_defines.dm
@@ -19,7 +19,7 @@
var/list/activator_names = list()
var/last_used = 0 //Uses world.time
var/complexity = 1 //This acts as a limitation on building machines, more resource-intensive components cost more 'space'.
- var/power_required = 5 //w
+ var/cooldown_per_use = 1 SECONDS
/obj/item/integrated_circuit/examine(mob/user)
..()
@@ -72,6 +72,9 @@
A.name = "[activator_names[i]]"
i++
+/obj/item/integrated_circuit/proc/on_data_written() //Override this for special behaviour when new data gets pushed to the circuit.
+ return
+
/obj/item/integrated_circuit/Destroy()
for(var/datum/integrated_io/I in inputs)
qdel(I)
@@ -92,7 +95,10 @@
var/mob/M = usr
- var/input = sanitize_text(input("What do you want to name the circuit?", ,""))
+ if(!M.canmove || M.stat || M.restrained())
+ return
+
+ var/input = sanitize_text(input("What do you want to name the circuit?","Rename", src.name), MAX_NAME_LEN)
if(src && input)
M << "The circuit '[src.name]' is now labeled '[input]'."
@@ -156,13 +162,14 @@
words += "\[[linked.name]\] \
@ [linked.holder]
"
if(outputs.len > inputs.len)
- height = Floor(outputs.len / inputs.len)
- //world << "I wrote [words] at ([i],[j])."
+ // height = Floor(outputs.len / inputs.len)
+ height = 1 // Because of bugs, if there's more outputs than inputs, it causes the output side to be hidden.
+ //world << "I wrote [words] at ([i],[j]). Height = [height]."
if(2)
if(i == 1)
words = "[src.name]
[src.desc]"
height = row_height
- //world << "I wrote the center piece because i was equal to 1, at ([i],[j])."
+ //world << "I wrote the center piece because i was equal to 1, at ([i],[j]). Height = [height]."
else
continue
if(3)
@@ -179,8 +186,9 @@
words += "\[[linked.name]\] \
@ [linked.holder]
"
if(inputs.len > outputs.len)
- height = Floor(inputs.len / outputs.len)
- //world << "I wrote [words] at ([i],[j])."
+ // height = Floor(inputs.len / outputs.len)
+ height = 1 // See above.
+ //world << "I wrote [words] at ([i],[j]). Height = [height]."
HTML += "