mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
[MIRROR] Adds Circuit variables (#7539)
* Adds Circuit variables (#60590) Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com> * Adds Circuit variables Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>
This commit is contained in:
co-authored by
Watermelon914
Watermelon914
parent
6ca0f0d80c
commit
db78fbb47a
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user