mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 09:02:27 +00:00
More pAI Stuff (#10647)
This commit is contained in:
@@ -69,7 +69,6 @@
|
||||
to_chat(user, SPAN_NOTICE("You install \the [H] into \the [src]."))
|
||||
verbs += /obj/item/modular_computer/proc/eject_personal_ai
|
||||
personal_ai.pai.parent_computer = src
|
||||
personal_ai.pai.verbs += /mob/living/silicon/pai/proc/personal_computer_interact
|
||||
to_chat(personal_ai.pai, SPAN_NOTICE("You gain access to \the [src]'s computronics."))
|
||||
user.drop_from_inventory(H, src)
|
||||
update_icon()
|
||||
@@ -119,7 +118,6 @@
|
||||
H.forceMove(get_turf(src))
|
||||
if(put_in_hands)
|
||||
user.put_in_hands(H)
|
||||
personal_ai.pai.verbs -= /mob/living/silicon/pai/proc/personal_computer_interact
|
||||
to_chat(personal_ai.pai, SPAN_NOTICE("You lose access to \the [src]'s computronics."))
|
||||
personal_ai.pai.parent_computer = null
|
||||
update_icon()
|
||||
|
||||
@@ -188,6 +188,10 @@
|
||||
return attack_self(user)
|
||||
return ..()
|
||||
|
||||
// pai can take a look, but they cannot interact with the UI
|
||||
/obj/item/modular_computer/attack_pai(mob/user)
|
||||
return attack_self(user)
|
||||
|
||||
// On-click handling. Turns on the computer if it's off and opens the GUI.
|
||||
/obj/item/modular_computer/attack_self(mob/user)
|
||||
if(enabled && screen_on)
|
||||
|
||||
Reference in New Issue
Block a user