mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 20:06:28 +01:00
Fixes the exosuit mounted autolathe. (#18440)
* autolathe1 * cl * Oops * pay the price --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
return implant
|
||||
|
||||
/obj/item/device/electronic_assembly/proc/check_interactivity(mob/user)
|
||||
if(!CanInteract(user, physical_state))
|
||||
if(!CanInteract(user, GLOB.physical_state))
|
||||
return 0
|
||||
return 1
|
||||
|
||||
|
||||
@@ -99,6 +99,6 @@
|
||||
. = ..()
|
||||
|
||||
/obj/item/device/electronic_assembly/device/check_interactivity(mob/user)
|
||||
if(!CanInteract(user, state = deep_inventory_state))
|
||||
if(!CanInteract(user, state = GLOB.deep_inventory_state))
|
||||
return 0
|
||||
return 1
|
||||
|
||||
@@ -63,7 +63,7 @@ a creative player the means to solve many problems. Circuits are held inside an
|
||||
/obj/item/integrated_circuit/proc/check_interactivity(mob/user)
|
||||
if(assembly)
|
||||
return assembly.check_interactivity(user)
|
||||
else if(!CanInteract(user, physical_state))
|
||||
else if(!CanInteract(user, GLOB.physical_state))
|
||||
return 0
|
||||
return 1
|
||||
|
||||
@@ -180,7 +180,7 @@ a creative player the means to solve many problems. Circuits are held inside an
|
||||
B.set_content(HTML.Join())
|
||||
B.open()
|
||||
|
||||
/obj/item/integrated_circuit/Topic(href, href_list, state = always_state)
|
||||
/obj/item/integrated_circuit/Topic(href, href_list, state = GLOB.always_state)
|
||||
if(!check_interactivity(usr))
|
||||
return
|
||||
if (assembly && !assembly.opened)
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
/datum/integrated_io/list/display_pin_type()
|
||||
return IC_FORMAT_LIST
|
||||
|
||||
/datum/integrated_io/list/Topic(href, href_list, state = always_state)
|
||||
/datum/integrated_io/list/Topic(href, href_list, state = GLOB.always_state)
|
||||
if(!holder.check_interactivity(usr))
|
||||
return
|
||||
if(..())
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
|
||||
/obj/item/device/integrated_electronics/debugger/attack_self(mob/user)
|
||||
var/type_to_use = input("Please choose a type to use.","[src] type setting") as null|anything in list("string","number","ref", "null")
|
||||
if(!CanInteract(user, physical_state))
|
||||
if(!CanInteract(user, GLOB.physical_state))
|
||||
return
|
||||
|
||||
var/new_data = null
|
||||
@@ -125,13 +125,13 @@
|
||||
if("string")
|
||||
accepting_refs = 0
|
||||
new_data = sanitize(input("Now type in a string.","[src] string writing") as null|text, MAX_MESSAGE_LEN, 1, 0, 1)
|
||||
if(istext(new_data) && CanInteract(user, physical_state))
|
||||
if(istext(new_data) && CanInteract(user, GLOB.physical_state))
|
||||
data_to_write = new_data
|
||||
to_chat(user, "<span class='notice'>You set \the [src]'s memory to \"[new_data]\".</span>")
|
||||
if("number")
|
||||
accepting_refs = 0
|
||||
new_data = input("Now type in a number.","[src] number writing") as null|num
|
||||
if(isnum(new_data) && CanInteract(user, physical_state))
|
||||
if(isnum(new_data) && CanInteract(user, GLOB.physical_state))
|
||||
data_to_write = new_data
|
||||
to_chat(user, "<span class='notice'>You set \the [src]'s memory to [new_data].</span>")
|
||||
if("ref")
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
/obj/item/integrated_circuit/memory/constant/attack_self(mob/user)
|
||||
var/datum/integrated_io/O = outputs[1]
|
||||
var/type_to_use = input("Please choose a type to use.","[src] type setting") as null|anything in list("string","number","ref", "null")
|
||||
if(!CanInteract(user, physical_state))
|
||||
if(!CanInteract(user, GLOB.physical_state))
|
||||
return
|
||||
|
||||
var/new_data = null
|
||||
@@ -99,13 +99,13 @@
|
||||
if("string")
|
||||
accepting_refs = 0
|
||||
new_data = sanitize(input("Now type in a string.","[src] string writing") as null|text, MAX_MESSAGE_LEN, 1, 0, 1)
|
||||
if(istext(new_data) && CanInteract(user, physical_state))
|
||||
if(istext(new_data) && CanInteract(user, GLOB.physical_state))
|
||||
data = new_data
|
||||
to_chat(user, "<span class='notice'>You set \the [src]'s memory to [O.display_data(data)].</span>")
|
||||
if("number")
|
||||
accepting_refs = 0
|
||||
new_data = input("Now type in a number.","[src] number writing") as null|num
|
||||
if(isnum(new_data) && CanInteract(user, physical_state))
|
||||
if(isnum(new_data) && CanInteract(user, GLOB.physical_state))
|
||||
data = new_data
|
||||
to_chat(user, "<span class='notice'>You set \the [src]'s memory to [O.display_data(data)].</span>")
|
||||
if("ref")
|
||||
|
||||
Reference in New Issue
Block a user