mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Adds Circuit variables (#60590)
Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
co-authored by
Watermelon914
parent
63e8466f39
commit
05ede8dc30
@@ -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