Adds Circuit variables (#60590)

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
Watermelon914
2021-08-12 18:30:50 -07:00
committed by GitHub
co-authored by Watermelon914
parent 63e8466f39
commit 05ede8dc30
20 changed files with 494 additions and 106 deletions
@@ -211,7 +211,7 @@
/obj/item/circuit_component/module/ui_static_data(mob/user)
. = list()
.["global_port_types"] = GLOB.wiremod_types
.["global_port_types"] = GLOB.wiremod_basic_types
/obj/item/circuit_component/module/attackby(obj/item/I, mob/living/user, params)
if(istype(I, /obj/item/circuit_component))
@@ -280,7 +280,7 @@
if(action == "set_port_type")
var/type = params["port_type"]
if(!(type in GLOB.wiremod_types))
if(!(type in GLOB.wiremod_basic_types))
return
component_port.set_datatype(type)
internal_component_port.set_datatype(type)